Thomas,

On 1/14/2004 at 11:36, you wrote:

TC> rereplace, with all the things to keep in a class, thusly:
TC> this=rereplace(this,^[A-Za-z\-_0-9],'','all')

The caret needs to be inside the square brackets. If it's outside the
brackets it acts as an anchor which indicates the beginning of the
string.

You can stick the literal hyphen at the end of the regex, which saves
the need for the escape character. Also, you can use rereplacenocase()
instead of rereplace() to shorten the regex even more.

rereplacenocase(this,[^a-z0-9_-],'','all')

~ Ubqtous ~
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to