regex:all_text_not_containing
This is an old revision of the document!
Table of Contents
Regex - All Text Not Containing
Text that does not contain ~
[^~\x22]+
Match anything except \n
.*
A string that does not start with a sequence
Ignore strings that start with the label “abc_”.
Use a negative look-ahead assertion:
^(?!abc_).+
Or a negative look-behind assertion:
(^.{1,3}$|^.{4}(?<!abc_).*)
Or just plain old character sets and alternations:
^([^a]|a($|[^b]|b($|[^c]|c($|[^_])))).*
regex/all_text_not_containing.1748331807.txt.gz · Last modified: 2025/05/27 07:43 by peter