I am trying to extract two different sets of numbers from a string. I have tried substring and Regexp, but to no avail.
Examples of the stringss
-
Possible string format #1
Company Name - 2024-07-01-2024-07-31 - GPPC - YTUBE - VYT - 63784 - 2782837 - 458573682 - [745-000121-003]
Possible string format #2
Company Name - 2024-07-01-2024-07-31 - GPPC - YTUBE - VYT - 63784 - 2782885 - 458573695
-
The only difference between the two possible formats is that the number on the end surrounded in brackets may not appear on some strings. In the example above, i would like to pull "2782837" or "2782885" and "458573682" or '458573695' respectively. What would be the best way to accomplish this in the ETL, using sql or the tiles or both?