Thread: Regex examples
View Single Post
Old 07-23-2017, 04:24 PM   #526
Steadyhands
Connoisseur
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
I'm looking to correct some scan errors for the letter I.

Quote:
bla bla bla 1 don't want to, l went to the shop
but I don't want to match

Quote:
Chapter 1 or Book 1 etc
I'm thinking that it needs to be a negative lookahead but can't get it right.
Code:
(?!(?i)(Chapter 1(\s?|<)|Part 1|Section 1|Book 1)) ([1|l])
Any suggestions?
Steadyhands is offline   Reply With Quote