Unable to match dollar sign in regular expressions

I'm running into a problem where I need to be able to extract a dollar sign in an extractor pattern. As far as I can tell it should be as simple as setting the regular expression to "\$". It just doesn't seem to be working for me...

I've tried matching a dollar sign in about the simplest example I could think of:

 This: $ is a dollar sign

With the extrator pattern of:

 This: ~@DOLLARSIGN@~ is a dollar sign

If I leave the extractor pattern blank or use a fairly generic regular expression, it works. But as soon as I specify the regular expression as "\$", it times out.

Any suggestions?

here's what I did that works too

You can use other notations to get around this bug. Just specify u0024 (the unicode hex notation for dollar sign) i.e. in your regular expression where you were using $, replace it with u0024 and everything will still work.

Huh. You're absolutely

Huh. You're absolutely right! It does time out on me, too. I'm putting in a bug report for it now.

I guess you could use negative matching for now...
\W

Thanks for the post.
Tim

That should do the trick.

That should do the trick. It's a little more involved than that though, because I'm trying to match the symbol straight on.

Something along the lines of

[^\w\s<>/\=":;.&]

unless you know of a better way of dealing with special characters in regular expressions.

Thanks!

you might want to be careful

you might want to be careful about that \ in there-- it'll think you're trying to escape the following =. You'd have to double the backslash to make it see it, I believe.

I did file that bug, by the way, and hopefully we'll have a fix in an alpha update soon.