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.
単純な正規表現の質問。あなたの答えは私が将来の表現に頭を包むのに役立ちます...
この文字列「Sendtoday@1 USD to 13.6512 MXN」があり、USDとMXNをターゲットにしたいとします。両方の値を返す正規表現は1つありますか?
現在、自分で確認する方法はありませんが、どちらも3文字なので、/ [AZ]{3}/のように動作するはずです。
編集:mason81が言ったように^と$を削除しました。