javascript - Regular problem, please give me advice

WBOY
Release: 2016-10-11 14:23:12
Original
796 people have browsed it

javascript - Regular problem, please give me advice
Use regular rules to distinguish suffixes, especially the difference between .com and .com.cn

Reply content:

javascript - Regular problem, please give me advice
Use regular rules to distinguish suffixes, especially the difference between .com and .com.cn

If it is just the domain name shown in the picture above, if there is no lower-level domain name
/[^.](.*)/The first value captured by the match is

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template