From: Reuben Thomas Date: Sun, 17 Feb 2008 19:22:47 +0000 (+0000) Subject: Replace a regex with a search X-Git-Tag: FILE5_05~481 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5ae588193ad3a5177facadcbaab2917e798cd46;p=file Replace a regex with a search --- diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang index 343ef7f1..8893dabb 100644 --- a/magic/Magdir/c-lang +++ b/magic/Magdir/c-lang @@ -24,5 +24,5 @@ # The inverted index functionality was added some time betwen # versions 11 and 15, so look for -q if version is above 14: >7 string >14 ->>10 regex .+\ -q\ with inverted index ->10 regex .+\ -c\ text (non-compressed) +>>10 search/100 \ -q\ with inverted index +>10 search/100 \ -c\ text (non-compressed) diff --git a/magic/Magdir/commands b/magic/Magdir/commands index d42fbefe..78a07540 100644 --- a/magic/Magdir/commands +++ b/magic/Magdir/commands @@ -48,7 +48,7 @@ !:mime application/x-awk # update to distinguish from *.vcf files # this is broken because postscript has /EBEGIN{ for example. -#0 regex BEGIN[[:space:]]*[{] awk script text +#0 search/Bb BEGIN { awk script text # AT&T Bell Labs' Plan 9 shell 0 string/b #!\ /bin/rc Plan 9 rc shell script text executable diff --git a/magic/Magdir/sgml b/magic/Magdir/sgml index ccb5e37b..778a0cb9 100644 --- a/magic/Magdir/sgml +++ b/magic/Magdir/sgml @@ -1,8 +1,8 @@ # Type: SVG Vectorial Graphics # From: Noel Torres -0 string \15 string >\0 ->>23 regex .*\