
BillKSmith
Veteran
Apr 14, 2011, 8:08 AM
Post #7 of 8
(3347 views)
|
|
Re: [spudfan] regex newbie question
[In reply to]
|
Can't Post
|
|
Use the predefined escape sequences for all the other whitespace characters. Unfortunately, there is no code for a space character. You must use an actual space. /[^\w+-. \t\r\f]/ This will match any character except a letter, a number, an underscore, a plus sign, a minus sign, a period, a space, a tab, a return, or a formfeed. (Think of it as matching any puctuation character or a newline) Note: You may have to remove the \r on some operatiing systems. Good Luck, Bill
|