search - Regex Notepad++ Searching for certain instances -
i have big grouping of text files (.xml) i'm looking search , find.
due conversion, letters (i , l) dropped after letter f.
data contains instances of
"f re" fire "diff cult" hard "ref ector" reflectorand many more cases.
where dropped letter became space.
i want search
f\s
but want eliminate pointing out whole words off, of, , if.
\soff\s \sof\s \sif\s
i have come series, i'm not sure how string regex code together.
(?<!\so)f\s (?<!\si)f\s (?<!\sof)f\s
any help offered appreciated, give thanks you
how about:
(?<!i|o)(?<!of)f\s
this match f\s
if isn't preceded i
or o
or of
.
i'm using 2 lookbehind because npp doesn't take variable length lokkbehind.
it doesn't match off ce
(office
).
regex search notepad++ lookbehind
No comments:
Post a Comment