House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

RegEx Help

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
The regex would be
Ben Doom
05/22/03 02:00 P
[^A-Za-z0-9\._]
Jerry Johnson
05/22/03 01:48 P
Awesome! Thanks everyone!
Brad Roberts
05/22/03 02:20 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Brad Roberts
05/22/2003 01:40 PM

I've spent a lot of time on this and can't seem to get it right. I need a regex that says the following: Find ANY character (including spaces) other than the following characters: A-Z, a-z, 0-9, period, and underscore. The problem with the ones I've created, is the regex would find a letter and return True, because the letter wasn't a number, period, or underscore.  I need it to find a character that is not any of the charcters listed above. Anyone care to help? -Brad

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
webguy
05/22/2003 01:50 PM

not A-Z, a-z, 0-9, period, and underscore =   [^A-Za-z0-9._] WG

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Doom
05/22/2003 02:00 PM

The regex would be [^A-Za-z0-9._] HTH. --  Ben Doom     Programmer & General Lackey     Moonbow Software, Inc : -----Original Message----- : : Sent: Thursday, May 22, 2003 1:36 PM : To: CF-Talk : Subject: RegEx Help : : : I've spent a lot of time on this and can't seem to get it right. : : I need a regex that says the following: : Find ANY character (including spaces) other than the following characters: : A-Z, a-z, 0-9, period, and underscore. : : The problem with the ones I've created, is the regex would find a : letter and : return True, because the letter wasn't a number, period, or underscore.  I : need it to find a character that is not any of the charcters listed above. : : Anyone care to help? : : -Brad : : :

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jerry Johnson
05/22/2003 01:48 PM

[^A-Za-z0-9\._] (The ^ in there says "anything but...) Jerry Johnson >>> cftalk@becomenew.com 05/22/03 01:35PM >>> I've spent a lot of time on this and can't seem to get it right. I need a regex that says the following: Find ANY character (including spaces) other than the following characters: A-Z, a-z, 0-9, period, and underscore. The problem with the ones I've created, is the regex would find a letter and return True, because the letter wasn't a number, period, or underscore.  I need it to find a character that is not any of the charcters listed above. Anyone care to help? -Brad

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jerry Johnson
05/22/2003 02:10 PM

The reason mine was wrong was that I escaped the period when I didn't need to. Always listen to Ben. Jerry Johnson >>> bdoom-hof@moonbow.com 05/22/03 01:51PM >>> The regex would be [^A-Za-z0-9._] HTH. --  Ben Doom     Programmer & General Lackey     Moonbow Software, Inc : -----Original Message----- : : Sent: Thursday, May 22, 2003 1:36 PM : To: CF-Talk : Subject: RegEx Help : : : I've spent a lot of time on this and can't seem to get it right. : : I need a regex that says the following: : Find ANY character (including spaces) other than the following characters: : A-Z, a-z, 0-9, period, and underscore. : : The problem with the ones I've created, is the regex would find a : letter and : return True, because the letter wasn't a number, period, or underscore.  I : need it to find a character that is not any of the charcters listed above. : : Anyone care to help? : : -Brad : : :

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group

<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

September 18, 2014

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30         

Designer, Developer and mobile workflow conference