Other Resources:
Negative look-behind assertion (?<!...)
What is a negative look-behind assertion? How to use it?
How to write a regular expression to find words not ending with 'oo' in text like: ?
✍: FYIcenter.com
A negative look-behind assertion is a zero-width assertion that allows you to not match a subpattern left to the current position (look-behind) without moving the matching position. Negative look-behind assertion is expressed as (?<!pattern). For example:
(?<!\t)\w+ - matches a word that does not follow a tab
The regular expression to match find words ending without 'oo' is:
* - skip space characters (\w+) - capture the word (?<!oo) - is the word not ending with '00'?
2013-01-31, 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 Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
Are you having problems using regular expressions when processing text strings in your applications ...