Re: Regular Expression [ and ]
johndoe_at_driver.net
Date: 05/22/04
- Next message: johndoe_at_driver.net: "Re: Using encrypted dB connection string"
- Previous message: johndoe_at_driver.net: "Re: Performance Question with Database Connections"
- In reply to: Jim Heavey: "Regular Expression [ and ]"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 May 2004 03:15:21 -0500
Some of these characters need to be escaped and I believe you do not want \r
in there as \n covers Carriage returns (if I recall correctly.
Also make sure that your - character that you want right after the # ? if
that is referring to the actual - character to allow or exclude is at the
end of the whole group. That also is very important. Refer to the docs for
the exact term for the - (I believe it is used specifically for ranges but
may have more meanings)
"Jim Heavey" <JimHeavey@nospam.com> wrote in message
news:Xns94F0DE099C346JimHeaveyhotmailcom@207.46.248.16...
>I created a regular expression and I used the following regular expression:
> [a-zA-Z0-9.,:;+'_()$%!?<>\\/$#-@*=+\093\091\n\t\r\040]{1,1000}
>
> I used \091 and \093 to indicate that "[" and "]" are valid characters,
> but
> it seems to ignore those values as it will not allow me to enter those
> values into the field where this reqular expression is associated.
>
> How can I tell it to allow these characters to be keyed?
>
> Also, I tried to use a bind expression such as ValidationExpression=<%#
> GetValidationExpressionVal() %>, but it did not seem to like this. Any
> reason I could not use a bind expression to pass the validation string
> into
> the control?
>
> Thanks for your assistance!!!!!!!!
- Next message: johndoe_at_driver.net: "Re: Using encrypted dB connection string"
- Previous message: johndoe_at_driver.net: "Re: Performance Question with Database Connections"
- In reply to: Jim Heavey: "Regular Expression [ and ]"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|