[opensource] regex help!
William (Bill) E. Triest III
triest.1 at osu.edu
Fri Feb 22 15:37:40 EST 2008
Silas,
What are you doing this in? Generically try [a-zA-Z]+\.[0-9]+ Some
languages support shortcuts, so in perl you could use \w+\.\d+
Basically it says one more characters in that are upper or lower case
letters or a digit (the perl one also includes underscore _ ) then a
period (its a back slash then a period because . has a special meaning
in regex's) and then one or more digits.
This is all untested and has absolutely no warranty of any kind.
Hope this helps,
Bill
Silas Baronda wrote:
> I'm looking for a regex that will match say baronda.2 so just
> string.xxxx x's being integers.
> _______________________________________________
> Opensource mailing list
> Opensource at cse.ohio-state.edu
> http://mail.cse.ohio-state.edu/mailman/listinfo/opensource
>
More information about the Opensource
mailing list