Other Resources:
Positive look-behind assertion (?<=...)
What is a positive look-behind assertion? How to use it?
How to write a regular expression to find words ending with 'oo' in text like: ?
✍: FYIcenter.com
A positive look-behind assertion is a zero-width assertion that allows you to match a subpattern left to the current position (look-behind) without moving the matching position. Positive look-behind assertion is expressed as (?<=pattern). For example:
(?<=\t)\w+ - matches a word that follows a tab
The regular expression to match find words ending with 'oo' is: Note that:
* - skip space characters (\w+) - capture the word (?<=oo) - is the word ending with '00'?
2013-01-31, 0👍, 0💬
Popular Posts:
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
How to write a regular expression to parse key-value entries from Windows .INI files? Here is an exa...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...