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.
次の正規表現c if statement は私が試しているものですが、一致しません
c if statement
if ( $line !~ /^if \(.\) \{/) {
私はそれが一致することを期待していますif ( a ==b ) {
if ( a ==b ) {
交換してみてください。。*の場合、「()」内に複数の文字を受け入れます
if ($line =~ /^if\s*\([^\)]+\)\s*\{/)