更新时间:2022-03-23 22:54:22
刚刚尝试下面的正则表达式,使您的验证获得通过。
Just try the below regex to make your validation getting passed.
^.*\..*$
说明:
^
- 断言,我们在开始。为了验证目的,我们必须给予开始和结束模式。 *
。 - 匹配任何字符零次或多次 \\
- 匹配文字圆点 *
。 - 匹配任何字符零次或多次 $
- 电话那端^
- Asserts that we are at the start. For validation purposes, we must give the start and end patterns..*
- Matches any character zero or more times.\.
- Matches a literal dot..*
- Matches any character zero or more times.$
- End of the line.