Hello Community,
maybe I am just blind and didn’t find it yet in the documentation, but could it be that there isn’t any possibility to determine if there is a number in a specific pattern?
I’ve got a column “unit” which got values like ‘A123’ and ‘AB12’ - I need to filter out every unit which got no number on second position.
Like in regex, I can do: ^(.)\d to get if the second character of my string is a number.
SQL Patindex also can do very basic capturing groups like %[0-9]% - which will give me 2 if the first number is on second place.
At the moment I am doing this with this PQL:
TO_INT(
SUBSTRING("TA_MR_PKC_EVENT"."BEARBEITENDE_ORGA",1,1)
)Which results in NULL if the second position isn’t a number - I can work with that, I am totally fine about it - but I am a little bit curious if there is an more elegant way in doing this.
Best regards,
Fabian