Yeah, I've found that the Jscript regular expressions (client side)
don't support all of the syntax of the C# regular expressions (when a
regex validator does a validate on the server side).

I ended up having to turn off client-side validation in a couple of
places, and in other places I split the regular expressions out into 2
separate validators.

Kirk

-----Original Message-----
From: Chris Sells [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 16 May 2002 2:52 a.m.
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Winform Regex Validator and Multiline TextBox


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.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to