Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Required regex pettern like
Ex: raj.gopal-reddy or raj.reddy.gopal
您当前的正则表达式处于正确的轨道上,我会使用否定的前瞻来断言不会出现三个以上的点。考虑这种模式:
^(?!.*\..*\..*\..*\.)[A-Za-z-]*\.[A-Za-z-]*$