Symbol for any number of any characters in regex?

前端 未结 5 1416
南笙
南笙 2020-11-29 21:21

I\'m wondering is there a symbol for any number (including zero) of any characters

5条回答
  •  旧时难觅i
    2020-11-29 21:42

    Yes, there is one, it's the asterisk: *

    a* // looks for 0 or more instances of "a"
    

    This should be covered in any Java regex tutorial or documentation that you look up.

提交回复
热议问题