0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

行末から見た先頭の半角スペースをヒットさせる正規表現を駆使してIntelli JのGit LogをExcelにエクスポートみたいなことをした

Last updated at Posted at 2025-05-14

やった作業

Intelli J の ログ から表示列をカスタマイズして、Ctrl + A → コピペすると、簡単に意図した情報のテーブルが作れてよいね。

困った内容

半角スペースで区切られてしまう。
そのまま貼り付けると列が分かれてくれない。

解決方法

次の正規表現でヒットさせたスペース、 \t に置換して解決。

\s(?=[^ \m]*$)

TODO

3列以上には対応していないから、そういうケースは追々...

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?