Re: Regular Expression Question

From: dw (me_at_verizon.invalid)
Date: 11/21/03

  • Next message: Geoff Robinson: "Re: Regular Expression Question"
    Date: Fri, 21 Nov 2003 22:37:01 GMT
    
    

    "Geoff Robinson" <geoffr2@aol.com> wrote in message
    news:978b35e2.0311211012.475195eb@posting.google.com...
    > Hello,
    >
    > I need a regular expression that will match all files which aren't of
    > two extensions. Basicly I need it to mean not *.a nor *.csv.
    >
    > The best I can come up with based on books and online sources is
    > [^[*.m][*.csv]] but that doesn't look quite right.

    not matching *.a or *.csv:

    ! /\.(a|csv)$/


  • Next message: Geoff Robinson: "Re: Regular Expression Question"

    Relevant Pages

    • Re: [9fans] non greedy regular expressions
      ... Subexpression matching means when you have an expression like ... Regular Expression Matching Can Be Simple And Fast ... While writing the text editor sam in the early 1980s, ...
      (comp.os.plan9)
    • Re: A question for the peanut gallery
      ... GAME OF THRONES, A CLASH OF KINGS, A STORM OF SWORDS, and have A FEAST ... In a matching lettered set. ... sold by itself without the other matching books in the set. ... pretty good sign that the others are worth significantly more. ...
      (rec.arts.sf.written)
    • Re: Can we do regular expression processing in C ?
      ... I need some code to do regular expression and wildcard matching. ... and filename wildcards (variants of which are ... There are a number of packages available for matching regular ...
      (comp.lang.c)
    • regular expression support on OpenVMS (was Re: grep on openVMS?)
      ... Wildcard matching of filenames is only one example of regular ... The need for a bundled API that supports regular expression matching is ...
      (comp.os.vms)
    • Re: Remembering Matched Values
      ... the regular expression is just the bit between the first ... Regex matching is by default case sensative. ... use a capital letter in the regex or make the matching case ...
      (comp.lang.perl.misc)