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 で始まるが、a?を含まないことを意味します。
(?<=\?)
?
現在与えられている情報で、次のように動作するはずです
.*\?(.*#).*
グループには問題の値が含まれています