I am trying to extract a substring from a string and do comparison with other string and see if its a complete match or not. Can someone share your thoughts on how to accomplish this using regular expressions. Thank you.
**Input column**
abc
abcd
**What I have tried?**
LIKE '%abc%'
**Output**
abc
abcd
But I need only abc and discard abcd in this case.How can this be done using LIKE. I guess LIKE doesnt support to accomplish which is the reason I am interested to use regex for this problem. Thank you.