Get numbers from string with regex

前端 未结 5 2000
Happy的楠姐
Happy的楠姐 2020-12-07 00:27

I am trying to write a regex to get the numbers from strings like these ones:

javascript:ShowPage(\'6009\',null,null,null,null,null,null,null)
javascript:Bloc         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 01:09

    Try this:

    (\d+)
    

    What language are you using to parse these strings?

    If you let me know I can help you with the code you would need to use this regular expression.

提交回复
热议问题