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.
我想写一个正则表达式,它应该匹配'?'之后的字符串 并以“#”结尾。
简单输入: somegarbage?Hello,world#garbage
简单输出:Hello,world#
(?<=\?).*#
(?<=\?)表示以 a 开头?但不包括它。
(?<=\?)
?
根据当前给出的信息,以下应该可以工作
.*\?(.*#).*
该组包含有问题的值