The following regex matches any character except a forward slash:
Also, remember the fact that a negated character such as [^/] must match a single character. It doesn't match zero-width assertions such as ^, $, \Z, \z, \b, \B, and so on.
The following regex matches any character but a and A:
The following regex matches all the consonants of the English language:
All non-vowels are considered consonants; hence, we just need to negate the vowel character class.
The following regex matches all the characters except digits, dots, and line breaks:
In this regex, we could also use the predefined property \d for [0-9]:
This regex matches http followed by ...