Regex to get numbers after particular text

Hi , I have strings like the below.

I want to get the numbers after the " if possible?

Struggling to get around the " in my expression

HTTP/1.1" 403

HTTP/1.0" 500

The below gets the numbers but does not include the "

(?<=HTTP/1.1 )\d{3}

@fflattery

Check below

image

Hope this may help you

Thanks

1 Like

Hi @fflattery

Please try this,

(?<=")[\s\d]*

Use trim after the result to remove the spaces.

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.