【发布时间】:2016-02-23 08:30:30
【问题描述】:
我需要找到一个不包含https或http,但在#之后的字符串
演示:
#abc => find.
http://google.com/#abc => not find.
我的代码是在 # 之后查找内容 preg_match_all("/#([^\s]+)/", $content, $matches);
【问题讨论】:
-
请在您的实际输入和输出字符串上更加精确。您的目标可以通过多种方式实现。
标签: regex preg-match-all