Hi,
Consider the following strings:
1) Scheme ID: abc-456-hu5t10 (High priority) *
2) Scheme ID: frt-78f-hj542w (Balanced)
3) Scheme ID: 23f-f974-nm54w (super formula run) *
and so on in the above format - the parts in bold are changes across the strings.
==> Imagine I've many strings of format Shown above. I want to pick 3 substrings (As shown in BOLD below) from the each of the above strings.
- 1st substring containing the alphanumeric value (in eg above it's "abc-456-hu5t10")
- 2nd substring containing the word (in eg above it's "High priority")
- 3rd substring containing * (
IF
* is present at the end of the stringELSE
leave it )
How do I pick these 3 substrings from each string shown above? I know it can be done using regular expressions in Perl... Can you help with this?