开发者

Regex to generate only numbers

开发者 https://www.devze.com 2023-02-27 02:37 出处:网络
I need a regular expression to generate numbers for the variable \'session.ID=2211090\' and I am going to use this regex in Jmeter开发者_StackOverflow\'s post Processor-Regular Expression Extractor.

I need a regular expression to generate numbers for the variable 'session.ID=2211090' and I am going to use this regex in Jmeter开发者_StackOverflow's post Processor-Regular Expression Extractor.

Thanks in advance for your help.


If you mean a regular expression to extract those numbers, then this should do it: session.ID=(\d+)

If you're replacing, replace with just $1 or \1, depending the language. Or if you're just wanting to use the numbers, then use the first capture, however you do that in the language you're using.

0

精彩评论

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