Michael Weinhardt [mailto:[EMAIL PROTECTED]] wrote:
> I tried the .*33.* in a multiline textarea, and it worked ok > if "33" was on the first row but, not if 33 was on the 2nd ie > aa\r\n33. Woops, yeah . won't pickup the \n and without being able to setup the multiline option this regex isn't enough. So change it to: (.|\n)*33(.|\n)* > I've also had trouble applying options. eg > > /IN/i > > I could not make it work in either a single or multiline > scenario, either lower or upper case. This is my > intepretation of the help, so it may be off. Yeah, options can only be applied using the /expression/options syntax when you're doing a literal regex. If you're contructing the RegExp object the expression is the first param and the options are the second. So this goes back to the whole inability to apply options thing. It's not that bad, just that you always need to make a regex that does a complete match. HTH, Drew .NET MVP You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.