Re: Regular Expression [ and ]

Tech-Archive recommends: Fix windows errors by optimizing your registry

johndoe_at_driver.net
Date: 05/22/04


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!!!!!!!!



Relevant Pages

  • Re: Regular Expression Function
    ... I want a regular expression to compare sentences and then rate them as ... I have an array with a list of other phrases like so... ... characters will throw things off. ... "In an hour the system will go down for maintenance". ...
    (alt.php)
  • Re: Regular Expression Function
    ... I want a regular expression to compare sentences and then rate them as ... I have an array with a list of other phrases like so.. ... These will be stripped from the input first. ... characters will throw things off. ...
    (alt.php)
  • Re: Expert script (.bat) writers help needed (strip double-quote from string)
    ... Sets or returns the regular expression pattern being searched for. ... Always a RegExp object variable. ... May include any of the regular expression characters defined in the table in the Settings section. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: RegExp and special caracters
    ... function identifier(str, substr) ... Expression syntax called POSIX 1003.2 Basic Regular Expressions (considered ... where special characters are to be escaped in order not to be considered ... Expressions modelled after the Regular Expression flavor Perl 5 supports ...
    (comp.lang.javascript)
  • Re: RegExp and special caracters
    ... function identifier(str, substr) ... Expression syntax called POSIX 1003.2 Basic Regular Expressions (considered ... where special characters are to be escaped in order not to be considered ... Expressions modelled after the Regular Expression flavor Perl 5 supports ...
    (comp.lang.javascript)