Topic
  • 2 replies
  • Latest Post - ‏2011-03-02T13:11:42Z by ericomtx
ericomtx
ericomtx
4 Posts

Pinned topic Regular Expressions with "-" and "." characters in a String content

‏2011-03-02T12:36:51Z |
Hello

I need to create a RegEx that accepts A-Za-z0-9 plus some special characters as ()/&, and "-" and "."

My first thought was this :
[A-Za-z0-9()/&,‘]+

this would handle a string like : "123()/&Ax,s`wa " ...

my question is how to add the 2 special characters as valid values in my string ... as an example :
"123()/&Axswa.-123"

Thks&Regards
Erico
Updated on 2011-03-02T13:11:42Z at 2011-03-02T13:11:42Z by ericomtx
  • ericomtx
    ericomtx
    4 Posts

    Re: Regular Expressions with "-" and "." characters in a String content

    ‏2011-03-02T13:10:50Z  
    hi Folks

    the rule worked like this :

    [A-Z0-9http://()/&,‘\.\-]+

    The special characters were included with the "\" before them

    Also I removed the lower case range(it was not allowed in my request)

    Thks&Regards
    Erico
  • ericomtx
    ericomtx
    4 Posts

    Re: Regular Expressions with "-" and "." characters in a String content

    ‏2011-03-02T13:11:42Z  
    • ericomtx
    • ‏2011-03-02T13:10:50Z
    hi Folks

    the rule worked like this :

    [A-Z0-9http://()/&,‘\.\-]+

    The special characters were included with the "\" before them

    Also I removed the lower case range(it was not allowed in my request)

    Thks&Regards
    Erico
    sorry for the wrong rule pasted on the reply
    here it goes => [A-Z0-9http://()/&,‘\.\-]+