Is this possible using a single eline regex patter ? thanks.
- IF contains no hyphen then get the first 2 characters
input: FL123466
output: FL
input: HL123466
output: HL
2.IF contains one hyphen then get first 2 characters after the hyphen.
input: A-CL123466
output: CL
input: AC-RL123466
output: RL
-
- IF contains two hyphens get the first 2 character after the first hyphen.
input : W-AA-456789
output: AA
- IF contains two hyphens get the first 2 character after the first hyphen.
input : RR-CA-456789
output: CA