I am trying to extract value from field if containing "- E1/E2" and ignore the rest.
I have used (?<value>.*)\s+-\s+E[1-3]* but it doesn't extract if doesn't contain E1/E2.
below sample values. it doesn't work for 2,4 sample data. Unable to understand how do i make E1/E2 as optional.
- hello - I am here at - E1
- Kilo
- How are you - E3
- Cool
- simple - E1 - Dev
- another simple - E2 QA