How to write regular expressio & that match rule 1 and don't contain rule 2?

119 2

For example, I'm looking for"[ 0 ]"but don't want"[ 0 ]". How to express this with regular expressions?

2 Answers

77 0

Do you don't need to start with this, you can use /[^][0]/.

60 3

Traditional regular expressio & don't support inte & ectio &, subtract operatio &, so your needs aren't implemented.
Unless you're using nark regular engines, this engine is strictly based on automata theory, intersection, and operations are implemented.

...