[thelist] reg Exp

Mark Joslyn Mark.Joslyn at SolimarSystems.com
Wed May 12 16:03:36 CDT 2004


How would you structure a regular expression that would evaluate the
following string:

strToUse = "[[myName]]Hello[[myName]]"

And return only the "Hello".

I use objRegExp.Pattern = "\[\[myName\]\]\w+\[\[myName\]\]" then use the
Replace function to strip out the unwanted information. It works but it
ugly.

Is there a better way to do this. I am using ASP.

Thanks,

markJ



More information about the thelist mailing list