What are ^.* and .*$ in regular expressions?

后端 未结 7 1097
臣服心动
臣服心动 2021-02-03 23:05

Can someone explain the meaning of these characters. I\'ve looked them up but I don\'t seem to get it.

The whole regular expression is:

/^.*(?=.{8,})(?=.         


        
相关标签:
7条回答
  • 2021-02-03 23:59

    ^ matches the beginning of a string

    $ matches the end

    .* is any number of characters

    0 讨论(0)
提交回复
热议问题