Regular expression: zero or more occurrences of optional character /

前端 未结 1 1508
春和景丽
春和景丽 2020-12-05 22:10

What is the regular expression pattern to say:

zero or more occurrences of the character /

?

相关标签:
1条回答
  • 2020-12-05 23:03
    /*
    

    If your delimiters are slash-based, escape it:

    \/*
    

    * means "0 or more of the previous repeatable pattern", which can be a single character, a character class or a group.

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