Other Resources:
Word character class - \w
What is abbreviation of a character class of all word characters? Does it represents any alphanumeric plus '_' characters?
How to write a regular expression using a character class abbreviation to capture all words 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 character class of all word characters is \w, which is the same as [0-9a-zA-Z_]. \w represents any alphanumeric plus '_' characters.
The regular expression to capture all words is:
(\w+)
\w+ - matches 1 or more word characters
2013-01-23, 0👍, 0💬
Popular Posts:
How to write a regular expression to validate GUID (Globally Unique IDentifier) or UUID (Universally...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...