I want to create a regex in php that matches all characters excluding ; but including all newlines. I can match all characters except ; easily with the regex:
[^;]
And I can match any character including newlines with the regex:
.*/s
But I'm not sure how to combine the two to get the result I desire. I would prefer not having to create a large regex that includes all numbers, symbols, etc.