我正在尝试在MySQL论坛数据库中搜索某个字符串的所有实例
这个字符串可能会在一个帖子中多次包含,这应该为每个实例返回一个匹配项。
ID PostContent
1 This is a post with a http://example.com/whatever
link and it links once
2 This is a link to http://example.com/this1 but also
look at http://example.com/this2
3 This post has no links
4 This has one link to http://example.com/link
我希望这回复
1 http://example.com/whatever
2 http://example.com/this1
3 http://example.com/this2
4 http://example.com/link
任何人都可以建议如何实现这一目标。我可以使用正则表达式返回包含“http://example.com/”的帖子,但是我正在努力解决如何处理多个实例的返回。
由于