Wedge

Public area => The Pub => Off-topic => Topic started by: Dragooon on September 29th, 2011, 07:16 PM

Title: Need a regular expression
Post by: Dragooon on September 29th, 2011, 07:16 PM
I need a regular expression to match either the fol. in a string, the problem is I need a single expression

?(Single question mark), ?:[0-9] or :[a-zA-Z0-9]

Any help is appreciated.
Title: Re: Need a regular expression
Post by: Nao on September 29th, 2011, 07:30 PM
Err. Why not (use|this|structure)...?
Title: Re: Need a regular expression
Post by: live627 on September 30th, 2011, 12:54 AM
Quote from Dragooon on September 29th, 2011, 07:16 PM
I need a regular expression to match either the fol. in a string
??
Title: Re: Need a regular expression
Post by: Dragooon on September 30th, 2011, 12:09 PM
Quote from Nao on September 29th, 2011, 07:30 PM
Err. Why not (use|this|structure)...?
I had no idea regex had an OR, that worked! Thanks :).
Quote from live627 on September 30th, 2011, 12:54 AM
Quote from Dragooon on September 29th, 2011, 07:16 PM
I need a regular expression to match either the fol. in a string
??
Don't sweat about it, I got it working :)
Title: Re: Need a regular expression
Post by: Nao on September 30th, 2011, 12:20 PM
Didn't you write regex back in the smg times?
Title: Re: Need a regular expression
Post by: Dragooon on September 30th, 2011, 12:22 PM
Not really, no.