How does a regular expression match characters other than www? for a long time, why didn't I think [^ w] {3 }? Expert guidance
Reply to discussion (solution)
How do I match characters other than www?
(?! Www) is that true?
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?
The description of the question is unclear.
If www does not match, but www1 does.
You can write regular expressions like this:
^ (?! Www $ ).*
The result is 0 1 1.
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
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?
After learning the php regular expression "negative sequence view", the landlord will know how to match it.
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?
After learning the php regular expression "negative sequence view", the landlord will know how to match it.
Ask $, isn't it the end of the match? what is the usage here?
(?! Www $)
$ Means matching the end, (?! Www $) this indicates the assertion. the assertion does not end with "www", and the assertion does not occupy the matching space.