开发者

how to construct a javascript regex to extract a number

开发者 https://www.devze.com 2022-12-25 19:50 出处:网络
Extr开发者_如何学JAVAact the number after #/ from my string: abcdefg#/123.This assumes the match will succeed: \'abcdefg#/123\'.match(/#\\/(\\d+)/)[1]

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


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

0

精彩评论

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

关注公众号