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
あなたの現在の正規表現は正しい方向に進んでおり、否定的な先読みを使用して、3 つ以上のドットが発生しないことを主張します。次のパターンを検討してください。
^(?!.*\..*\..*\..*\.)[A-Za-z-]*\.[A-Za-z-]*$