I have the following Regular Expression:
/i'm [a-zA-Z]|i am [a-zA-Z]*/i
It works in terms of detecting when a phrase matches the regex, but I'm specifically trying to capture the [a-zA-Z]
part.
For example:
"I'm sam" // -> sam
I am good at this // -> good
Tell me if this question needs any improvement. Thanks in advance! ^^