【发布时间】:2017-08-23 22:55:17
【问题描述】:
我从应用程序接收 URL 作为发布数据。
网址有一个签名://abc.com/name?q=123456。
我想使用正则表达式(正则表达式)从 URL 中提取名称 我该怎么做?
【问题讨论】:
-
简短的回答是不要。改用这个:secure.php.net/manual/en/function.parse-url.php 并获取
path组件。
标签: javascript php html regex