LoginSignup
0
0

More than 5 years have passed since last update.

職場で使用した正規表現

Posted at

正規表現

\{\$FM\.M40\[[0-9]+\]\.quiztext\}

^1 先頭が1のファイルを変換する(〇〇第一弾、〇〇第二弾などのように処理は、同じで違うテンプレートファイルを作成する時などに使用。)

^1 2

$や.や[]や{などは、エスケープする(M40などのテーブル(本番運用中)を違うテーブル(同じ構成のテーブル)からとってくる時に使用)

<a href="./\?md=B110&amp;questioncode=\{\$FM\.M41\[[0-9]+\]\.questioncode\}">

ifで」始まってifで終わるものを検索する

\{if(.|[\n])+\/if\}
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