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.
