Other Resources:
1 or more times repetition quantifier +
What is the 1 or more times repetition quantifier? How to use it?
How to write a regular expression using a repetition quantifier 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
--- Answer
The "1 or more times" repetition quantifier allows us to repeat a pattern unit 1 or more times (i.e., at least once) in the matching process. The "1 or more times" repetition quantifier character is '+' and it needs be placed immediately after the pattern unit. For example:
\d+ # matches '888' and '99' from '$888.99' (really )+bad # matches 'really really really bad'
The regular expression to capture all words in a text file is:
(\w+)
\w+ - matches 1 or more word characters
2013-01-26, 0👍, 0💬
Popular Posts:
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...