[thelist] regex help

Aleem B aleem.bawany at utoronto.ca
Thu Sep 4 15:35:35 CDT 2003


> So, the issue I want an regex for is to remove s3 from the string
> "s1s2s3s4" to leave me "s1s2s4".
> 
> "match 's' and then the supplied numerical value (a variable)"

Why not use a string replace function in the language you are
implementing this in? What language are you using? Most languages offer
it. The string to replace will obviously be s+$id with ''

aleem

[ http://www.aleembawany.com/ ] 



More information about the thelist mailing list