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.
私はすべてのスペースを一致させ、エスケープされたスペースに変換しようとしていますが、これまでのところ、行末にないスペースのみを使用して、/\ !$/\\\ /gその時点で一般的なボタン マッシングを試みました。
/\ !$/\\\ /g
この正規表現を使用します(?m)( +)(?!$)
(?m)( +)(?!$)
(?m)正規表現オプション multiLine
(?m)
( +)> 0 スペース
( +)
(?!$)は行末ではありません
(?!$)