Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们想使用请求 URI 过滤配置文件。有人可以指导我如何编写一个正则表达式,它只会从下面的 url 中选择这些 (?c=/us) 参数。www.xyx.com/?c=/us
你可以试试这个正则表达式:
(?<=\/)(\?[^\?]+)
问号?应该被转义,因为它在正则表达式中有特定的含义。
?