Other Resources:
Negated word character class - \W
What is abbreviation of a negated character class of all word characters? Does it represents any characters except alphanumeric plus '_' characters?
How to write a regular expression using a character class abbreviation to capture all sequences of non word characters in a PHP script code like this: function get($key) {if (array_key_exists($key,$_POST)) return $_POST[$key]; else return "";}?
✍: FYIcenter.com
The predefined abbreviation of a negated character class of all word characters is \W, which is the same as [^0-9a-zA-Z_]. \W represents any characters except alphanumeric plus '_' characters.
The regular expression to capture all sequence of non word characters is:
(\W+)
\W+ - matches 1 or more non word characters
2013-01-23, 0👍, 0💬
Popular Posts:
How to write a regular expression to parse key-value entries from Windows .INI files? Here is an exa...
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...
A free online regular expression test tool that allows to try you regular expression pattern and see...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...