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}


Check below


Hope this may help you


1 Like

Hi @Automater999

Please try this,


Use trim after the result to remove the spaces.


1 Like

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