I'm using the Twitter API to fetch information about all of my followers. In many cases, their bio will have a link to their Instagram page. They usually define it by writing something along the lines of IG: myigusername94
or instagram - myigusername93
. I'm not that good with regex and I'd like to know how to test for the presence of a set of chars like ig:
or 'instagram -` and replace it with
"ig: <a href="http://instagram.com/myigusername94">myigusername94</a>"
I know this is probably a simple fix. But, I'm very new to regex.