Allow dots in URL using regex [closed]
How can I allow a dot in an URL using Regex? Any advice?
thanks
\.
will allow you to match a dot. How you insert that into your regex depends on how you've created your regex.
.
in a regex allows any character (except newlines, depending on the engine and its options), so you have to escape it as \.
Since you're being vague, so will I:
\.
There's the regex to allow a dot.
use the \ to escape native match chrs
精彩评论