On Thu, 16 May 2002 14:29:03 -0400, Marsh, Drew <[EMAIL PROTECTED]> wrote:
>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)* Thx...I was hoping there was something easier, but this makes sense, especially since there isn't a property on the regex validation control for options, and you have to make a complete match. > >> 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, Definitely...thanks again Drew. Your responses have really cleared up some issues for me. Cheers, michael w >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.