From: handa Date: Fri, 11 May 2007 04:47:14 +0000 (+0000) Subject: Escape '(' and ')' in regexp. X-Git-Tag: REL-1-4-0~97 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ed13a10708c9bd8c5766886a188784c58533f82;p=m17n%2Fm17n-db.git Escape '(' and ')' in regexp. --- diff --git a/LANGNAME.awk b/LANGNAME.awk index aa31641..5f5e5fd 100644 --- a/LANGNAME.awk +++ b/LANGNAME.awk @@ -110,7 +110,7 @@ BEGIN { gsub(", autres langues$", "", name); gsub(", autres$", "", name); gsub(", langues$", "", name); - gsub(", langues (famille)$", "", name); + gsub(", langues \\(famille\\)$", "", name); if (name ~ /\(.*[0-9].*\)$/) gsub(" \\([^)]*\\)$", "", name); if (name ~ ", ") {