 philcart
Member
|
Just trying to work out how the Regular Expression search works.
I’m trying to find specific lines in a text file that do not contain at least 22 pipe characters.
The expression I entered is
~^*|{22}
This doesn’t find any rows but I definately know that invalid rows exist. I found one manually by scanning through the file.
Is my expression incorrect, or is there a problem with the regex find?
Thanks
Phill
|
 hartwork
Member
|
In EmEditor you could use ^([^|]*|){0,21}[^|]*$ to match all lines containing 0 to 21 pipes.
I tried to make this work with PN2 but it does not seem to be possible yet. PN2 does not support range quantifiers (syntax {a,b}) nor the question mark operator. I don’t see a way to make this work without them.
Sebastian
|
 simon
Key Master
|
The regular expressions support in PN2 is not that great right now. The roadmap includes switching to PCRE (or equivalent) for the RE search and once done this will support the full syntax that you desire.
|