Hoping for some help. I am new to regex and I am trying to come up with something that will search a string and check if it has 4 consecutive digits, and if so extract that 4 digit number into a new attribute.
I want to use a regular expression, but I'm a bit confused with the expression. For some background, I'm using a master data management tool that has it's own syntax quite similar to SQL.
This is the framework of the expression from the tool:
REGEXP_LIKE(string, pattern, parameter)
Something like (string,/d/d/d/d,[,i])
?
Pulling 4 digits from the string, not case sensitive (not sure if that would even be applicable)
Sometimes the location of the digits are different, so a substring isn't the best option here.
Any feedback would be helpful to get me in the right direction!