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-zA-Z0-9$\s]*)が、そのグループ内で一致させたいのですが=、それらが次>のように一緒に表示される場合に限ります=>
([a-zA-Z0-9$\s]*)
=
>
=>
これを試しましたが、うまくいかないようです([a-zA-Z0-9$\s]|=>*)
([a-zA-Z0-9$\s]|=>*)
1つの正規表現とおそらく1つのキャプチャグループでこれを行う方法はありますか?
アスタリスクを角かっこの外に移動するだけです...
([a-zA-Z0-9$\s]|=>)*
すべてをキャプチャするには、ブラケットのペアをもう1つ追加します...
(([a-zA-Z0-9$\s]|=>)*)