Need to remove links from your content? This regex patten should do the trick.
First you will need to choose a programming language has regex functionality and returns the properties start position, the length and group values of a string.
Then use a substring method to extract the string that matched the pattern.
Use the replace function to remove the link and use group two from the results of the regex function to put back the link text.
Example below is using c#.
A good idea would be to output the changes to a text file so you can track the modifications.
If you are replacing links in MySql database, using innodb engine use transactions so you can check the changes before committing them.