Regular Expression search

Discussion Forums discussion Regular Expression search

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
March 14, 2006 at 12:49 am #41


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


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?



March 17, 2006 at 7:59 pm #14904


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.


March 20, 2006 at 11:28 am #14905

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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.