开发者

how to construct a javascript regex to extract a number

Extr开发者_如何学JAVAact the number after #/ from my string: abcdefg#/123.


This assumes the match will succeed: 'abcdefg#/123'.match(/#\/(\d+)/)[1]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜