trevor12:
--------------------------------------------------------------------------------
pls add to Find help with NEAR two words in chosen distance with RegExp

I tried 

word1\W+(?:\w+\W+){1,6}?word2

or (for possibility in reverse order)


(?:word1\W+(?:\w+\W+){0,5}?word2|word2\W+(?:\w+\W+){0,5}?word1)

but without success
--------------------------------------------------------------------------------


Hi,
it seems, PSPas doesn't support non-capturing groups via: (?:abc)
you can probably try normal grouping parens (abc). - I only briefly checked the
first pattern, and it seems to match somehow, but I don't know the actual
specification, cornercases etc.

hth,
   vbr

-- 
<https://forum.pspad.com/read.php?2,70875,70876>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem