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.
だから私は次の正規表現を持っています:(.*)
(.*)
ただし、最後の文字を除いてすべてをキャプチャする必要があります。
結果に対して a を実行すると解決するように見えるかもしれませんが、substr(-1これが実行されるコンテキストのため、これは不可能です。理由を説明するのは混乱するだけです。
substr(-1
次の文字を追加するだけです:
(.*).