各言語での正規表現呼び方
Python
py
re.findall(pattern, str), re.match(pattern, str), re.search(pattern, str)
py
re.split(sep, str)
re.sub(変更前, 変更後, str)
Bash
sh
expr 文字列 : 正規表現
- 先頭から何文字一致したかが出る
- なので 行頭を表す
^
は不要(あってもいい)
これはワイルドカード?
bash
[[ $host != app* ]] && host_type=app
PowerShell
powershell
-like, -notlike # ワイルドカード
-match, -notmatch # 正規表現