What does [\S\s]* mean in regex in PHP?

前端 未结 3 1741
梦如初夏
梦如初夏 2020-12-03 06:24

What is meant by [\\s\\S]* in regex in PHP? Does [\\s\\S]* actually match every string the same as .*?

3条回答
  •  一整个雨季
    2020-12-03 07:20

    [\s\S] A character set that matches any character including line breaks.

    . Matches any character except line breaks.

提交回复
热议问题