Menu

#9 Is the regular expression syntax for FART documented anywhere?

v1.0 (example)
open
nobody
None
5
2016-08-14
2016-08-11
Ross
No

I'm trying to search for character sequences that involve both the --c-style option (so that I can use \x2F to represent a forward slash), and also --word, so I can use regular expressions. However I can't get regular expressions to work.

E.g.

`fart --line-number --ignore-case --preview --c-style --word *.pas "\x2F\x2F.*hello"

should match and print out the lines:

`// hello
`// well, hello there

but it doesn't.

Related

Support Requests: #9

Discussion

  • Lionello Lunesu

    Lionello Lunesu - 2016-08-12

    Wildcards are not supported :( Sorry.

    On Fri, Aug 12, 2016 at 6:20 AM, Ross rossmcm@users.sf.net wrote:


    Status: open
    Group: v1.0 (example)
    Created: Thu Aug 11, 2016 10:20 PM UTC by Ross
    Last Updated: Thu Aug 11, 2016 10:20 PM UTC
    Owner: nobody

    I'm trying to search for character sequences that involve both the
    --c-style option (so that I can use \x2F to represent a forward slash), and
    also --word, so I can use regular expressions. However I can't get regular
    expressions to work.

    E.g.

    `fart --line-number --ignore-case --preview --c-style --word .pas "\x2F\x2F.hello"

    should match and print out the lines:

    // hello// well, hello there

    but it doesn't.

    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/fart-it/support-requests/9/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

    --
    L.

     

    Related

    Support Requests: #9

  • Ross

    Ross - 2016-08-14

    Thanks for the reply - are any other regular expression constructs supported apart from wildcards - e.g. [a-z] and similar?

     
    • Lionello Lunesu

      Lionello Lunesu - 2016-08-15

      No, sorry.

      Have a look at 'sed', http://gnuwin32.sourceforge.net/packages/sed.htm

      On Mon, Aug 15, 2016 at 3:56 AM, Ross rossmcm@users.sf.net wrote:

      Thanks for the reply - are any other regular expression constructs
      supported apart from wildcards - e.g. [a-z] and similar?


      Status: open
      Group: v1.0 (example)
      Created: Thu Aug 11, 2016 10:20 PM UTC by Ross
      Last Updated: Thu Aug 11, 2016 10:20 PM UTC
      Owner: nobody

      I'm trying to search for character sequences that involve both the
      --c-style option (so that I can use \x2F to represent a forward slash), and
      also --word, so I can use regular expressions. However I can't get regular
      expressions to work.

      E.g.

      `fart --line-number --ignore-case --preview --c-style --word .pas "\x2F\x2F.hello"

      should match and print out the lines:

      // hello// well, hello there

      but it doesn't.

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/fart-it/support-requests/9/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      L.

       

      Related

      Support Requests: #9


Log in to post a comment.

MongoDB Logo MongoDB