Below is the dataset examples, each row has the following values:
| row | value |
|---|---|
| 1 | AG3608-sueyfbnd-sjwfk |
| 2 | TS2649-sjwjmdaqo-wkdmfl |
| 3 | wudjeolssopp |
| 4 | sjhwu78iwjm |
so on....
I want to extract values that start with either AG or TS, and capture everything after. Below is the desired outcome
| row | value |
|---|---|
| 1 | AG3608-sueyfbnd-sjwfk |
| 2 | TS2649-sjwjmdaqo-wkdmfl |
I wrote something like this, but it's only capturing the the first 2 letters AG or TS
regexp_extract(${column},'^(AG|TS).*') it doesn't capture everything after
