Skip to Content
0
Jul 31, 2018 at 09:44 PM

How to extract a number following certain text in a string

56 Views

I need to extract the number following Hours Required: withing the string below.

Priority code 1, Category: A (Ready)Decision to Treat Dat: August 1, 2018, Surgeon: DV, Hours Required:4, Admission 23 Stay, Hospital Preference ST B

This is an example of the string, it can contain more or less text. The number can be 1 digit or 2 digits