Conversation

Dashes

  1. Kaiba (formerly Ponydude) spool

    What's wrong with this expression??? grep -r -P '(?=Event::handle)\(\'.*?\'' . | less

    about a year ago from web
    1. Kaiba (formerly Ponydude) spool

      @ponydude My command line keeps saying quote> but I escaped the quotes that are part of the regex :/

      about a year ago from web
      1. Toksyuryel toksyuryel

        @ponydude Are they in a context where they need to be double-escaped?

        about a year ago from web
        1. Kaiba (formerly Ponydude) spool

          @toksyuryel The context that's failing is my shell, so I don't think so.

          about a year ago from web
        2. Kaiba (formerly Ponydude) spool

          @toksyuryel I think I figured it out. You can't escape single quotes inside single quotes for some reason.

          about a year ago from web
          1. Toksyuryel toksyuryel

            @ponydude That makes sense. Try double quoting the whole string, in that case, so you can use single quotes inside of it.

            about a year ago from web
            1. Kaiba (formerly Ponydude) spool

              @toksyuryel Working on that now. The major problem with that is that it doesn't shield the string from being interpreted by the shell. x|

              about a year ago from web
              1. Toksyuryel toksyuryel

                @ponydude What about single quoting the string and using double quotes inside the string?

                about a year ago from web
                1. Kaiba (formerly Ponydude) spool

                  @toksyuryel But then it wouldn't match the contents of the file. The file contains single quotes.

                  about a year ago from web
                  1. Toksyuryel toksyuryel

                    @ponydude Ah. Hm.

                    about a year ago from web
                  2. Toothpaste Pony! minti

                    @ponydude Trying to find all plugin hook locations? ;p

                    about a year ago from web
                    1. Kaiba (formerly Ponydude) spool

                      @minti Yeah. It's not going over too well.

                      about a year ago from web
                    2. Kaiba (formerly Ponydude) spool

                      @minti I was using a much simpler regex, but I'm trying to narrow the output down to make it easier to look at.

                      about a year ago from web

Affiliates

BUCK Bronies UK Equestria Inspired EquestriaGaming Pony Mix Central PonySquare
Cornify
Browser Ponies
+ -