How does a regular expression match characters other than www ;? How to match characters other than www with regular expressions
After thinking for a long time, did you think [^ w] {3 }? Expert guidance
Share:
------ Solution --------------------
How do I match characters other than www?
(?! Www) is that true?
------ Solution --------------------
The description of the question is unclear.
If www does not match, but www1 does.
You can write regular expressions like this:
^ (?! Www $ ).*
Var_dump (preg_match ('/^ (?! Www $). */', "www", $ match ));
Var_dump (preg_match ('/^ (?! Www $). */', "1www", $ match ));
Var_dump (preg_match ('/^ (?! Www $). */', "www11", $ match ));
The result is 0 1 1.
------ Solution --------------------
Reference:
Quote: reference:
How do I match characters other than www?
(?! Www) is that true?
I want to match a second-level domain name (?! Www) what does this mean that wwa will be matched?
Not matched