は私の文字列です:どのようにパターンの結果を逆にすることができますか?ここ
Organization 2
[email protected] [email protected] [email protected] [email protected]
Organization 3
[email protected] [email protected]
また、これは私のパターンです:あなたがdemoで見たよう
/^.*[email protected][^ ]+|^.*$/gm
、パターンはこれに一致します。
Organization 2
[email protected]
Organization 3
[email protected]
私の質問:どうすればいいですか?私は逆にする?私はこれと一致したいと思うことを意味します:
[email protected] [email protected] [email protected]
[email protected]
どうすればいいですか?実際に私は新しい結果を得るために新しい(と完全に異なる)のパターンを書くことができますが、私は知りたいですは "パターンの結果を反転"は可能ですか?
文字列を逆順にしてから元の正規表現を使用することをやめることは何ですか?たぶんあなたは何らかの形の見た目を使うことができるかもしれませんが、何がポイントになるでしょうか? –
@TimBiegeleisenポイントはパターンと一致しないものすべてにマッチしています。 – Shafizadeh
Upvoted。たぶん@Wiktorはこれに対する答えを知っているでしょう。 –