regex – match string not beginning with word

/^((?!^TEST).)*$/
matches strings that DO NOT BEGIN with TEST

^((?!^(LOREM|IPSUM|LUGULUGU)).)*$
matches strings that
DO NOT BEGIN with LOREM
AND
DO NOT BEGIN with IPSUM
AND
DO NOT BEGIN with LUGULUGU

Leave a Reply

Your email address will not be published. Required fields are marked *