Last active
March 25, 2022 01:43
-
-
Save tekk555/347896307eaa8d03c7e56f55b88ab3f9 to your computer and use it in GitHub Desktop.
左辺と右辺を交換する正規表現
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
左辺と右辺を交換する正規表現 | |
検索文字列 | |
([ \t]*)(.*[^ ])([ ]*=[ ]*)(.*[^ ])(;) | |
置換文字列 | |
\1\4\3\2\5 | |
説明 | |
()でグループ化した文字列を、置換文字列で入れ替えする仕組み。 | |
Author
tekk555
commented
Mar 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment