[RegExp]先読みの正規表現
何度、書いても忘れるので、メモる
対象テキスト
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cerulean/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cosmo/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cyborg/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/darkly/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/flatly/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/journal/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/litera/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/lumen/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/lux/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/materia/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/minty/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/pulse/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/sandstone/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/simplex/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/sketchy/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/slate/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/solar/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/spacelab/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/superhero/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/united/bootstrap.min.css"
"https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/yeti/bootstrap.min.css"
正規表現:/(?<=.1/)(\w+)/
□検索条件 "(?<=.1/)(\w+)"
検索対象 dump.txt
フォルダ G:\Users\sakai\Desktop
(サブフォルダを検索しない)
(英大文字小文字を区別しない)
(正規表現:bregonig.dll Ver.3.06 with Onigmo 5.15.0)
(文字コードセットの自動判別)
(一致した箇所のみ出力)
G:\Users\sakai\Desktop\dump.txt( 1,54) [UTF-8]: cerulean
G:\Users\sakai\Desktop\dump.txt( 2,54) [UTF-8]: cosmo
G:\Users\sakai\Desktop\dump.txt( 3,54) [UTF-8]: cyborg
G:\Users\sakai\Desktop\dump.txt( 4,54) [UTF-8]: darkly
G:\Users\sakai\Desktop\dump.txt( 5,54) [UTF-8]: flatly
G:\Users\sakai\Desktop\dump.txt( 6,54) [UTF-8]: journal
G:\Users\sakai\Desktop\dump.txt( 7,54) [UTF-8]: litera
G:\Users\sakai\Desktop\dump.txt( 8,54) [UTF-8]: lumen
G:\Users\sakai\Desktop\dump.txt( 9,54) [UTF-8]: lux
G:\Users\sakai\Desktop\dump.txt(10,54) [UTF-8]: materia
G:\Users\sakai\Desktop\dump.txt(11,54) [UTF-8]: minty
G:\Users\sakai\Desktop\dump.txt(12,54) [UTF-8]: pulse
G:\Users\sakai\Desktop\dump.txt(13,54) [UTF-8]: sandstone
G:\Users\sakai\Desktop\dump.txt(14,54) [UTF-8]: simplex
G:\Users\sakai\Desktop\dump.txt(15,54) [UTF-8]: sketchy
G:\Users\sakai\Desktop\dump.txt(16,54) [UTF-8]: slate
G:\Users\sakai\Desktop\dump.txt(17,54) [UTF-8]: solar
G:\Users\sakai\Desktop\dump.txt(18,54) [UTF-8]: spacelab
G:\Users\sakai\Desktop\dump.txt(19,54) [UTF-8]: superhero
G:\Users\sakai\Desktop\dump.txt(20,54) [UTF-8]: united
G:\Users\sakai\Desktop\dump.txt(21,54) [UTF-8]: yeti
いいなと思ったら応援しよう!
System Development業界、Software Engineering、Scriptingについて、発信してます。サポートありがとうございます。