That's strange. I just did this with RegexD [1] and it worked just fine. Chris Sells http://www.sellsbrothers.com/
[1] http://www.sellsbrothers.com/products/#regexd > -----Original Message----- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Michael Weinhardt > Sent: Wednesday, May 15, 2002 5:38 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] Winform Regex Validator and Multiline TextBox > > Hi, > > Is it possible to use a regex validator against a multiline textbox on a > winform and have it find a match that goes across lines? > > eg > regex = "33" > text = "33\r\n33" > > In this example, if I use System.Text.RegularExpressions.Regex.Matches, > this finds two matches. > > However, if I have a webform with a multiline textbox and a regex validator > with 33, then enter 33 CRLF 33 into the textbox, the regex validator fails. > > I tried whacking (?s) in front, but it didn't seem to do anything. > > Any ideas? > > Cheers, > michael w > > ps I swore I'd seen something like this already posted, but couldn't find > it so apologies in advance if already answered. > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.