[thelist] regex help

Tom Dell'Aringa pixelmech at yahoo.com
Tue Sep 2 16:37:54 CDT 2003


Hello,

I have what is probably a simple regex to do but i cannot figure it
out. Mainly because I need a variable in my regex. Here is my target
string:

string = "s1s2s3s4";

from there, I need to remove say "s3".

But the 3 is going to be a variable, say personID. so really I need
to remove "s" + personID as my regex.

How would I do this?

Thanks

Tom

=====
http://www.pixelmech.com/ :: Web Development Services
http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday!
http://www.maccaws.com/ :: Group Leader
[Making A Commercial Case for Adopting Web Standards]

"That's not art, that's just annoying." -- Squidward


More information about the thelist mailing list