use*_*829 3 java regex validation
有人可以解释以下正则表达式匹配的内容吗?
^.*$
Run Code Online (Sandbox Code Playgroud)
谢谢!
dav*_*ave 15
一切.
^ is the beginning of the string.
. is any character.
* means 0 or more of said characters.
$ is the end of the string.
Run Code Online (Sandbox Code Playgroud)
所以这个正则表达式匹配0或更多字符开始和结束一个字符串(这是一切).