These are the possible strings:
I'm trying to write a regex to capture the following values from each string:
Every regex I write only captures these 1 character backreferences:
I can't figure out the regex that will capture the values above from the strings above.
The closest I got was this:
It captures the value of "b," for example, in all the strings, but the moment I try to capture the value of "ih" or "ah" in the possible string sequences, it simply cuts off the second character and only returns "i" (from ih) or "k" (from kh).
I'm really stumped. The major problems occurs when the value to capture is longer than 1 character (as in ih|kh opposed to a|b|c).
All insight or solutions will be appreciated.