Hi, what is the pattern supposed to match? - probably some (preferably short) samples of real text strings might be clearer. If Cyrillic or some "special" - i.e. non-ascii punctuation should be matched, unicode definitely needs to be taken into account. The current patterns are most likely more complicated than needed - e.g. you don't need escaping most of the literals in the character class (between [...]) - most likely only: - ^ [ and ] (with some further positional specificities). vbr
-- <https://forum.pspad.com/read.php?2,71394,71402> PSPad freeware editor https://www.pspad.com
