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

    Sunday, 01-Apr-12 06:53:36 UTC from web
    1. @ponydude My command line keeps saying quote> but I escaped the quotes that are part of the regex :/

      Sunday, 01-Apr-12 06:55:00 UTC from web
      1. @ponydude Are they in a context where they need to be double-escaped?

        Sunday, 01-Apr-12 06:56:26 UTC from web
        1. @toksyuryel The context that's failing is my shell, so I don't think so.

          Sunday, 01-Apr-12 06:57:06 UTC from web
        2. @toksyuryel I think I figured it out. You can't escape single quotes inside single quotes for some reason.

          Sunday, 01-Apr-12 07:01:11 UTC from web
          1. @ponydude That makes sense. Try double quoting the whole string, in that case, so you can use single quotes inside of it.

            Sunday, 01-Apr-12 07:04:09 UTC from web
            1. @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|

              Sunday, 01-Apr-12 07:05:26 UTC from web
              1. @ponydude What about single quoting the string and using double quotes inside the string?

                Sunday, 01-Apr-12 07:06:17 UTC from web
                1. @toksyuryel But then it wouldn't match the contents of the file. The file contains single quotes.

                  Sunday, 01-Apr-12 07:06:55 UTC from web
                  1. @ponydude Ah. Hm.

                    Sunday, 01-Apr-12 07:07:49 UTC from web
                  2. @ponydude Trying to find all plugin hook locations? ;p

                    Sunday, 01-Apr-12 07:08:22 UTC from web
                    1. @minti Yeah. It's not going over too well.

                      Sunday, 01-Apr-12 07:09:12 UTC from web
                    2. @minti I was using a much simpler regex, but I'm trying to narrow the output down to make it easier to look at.

                      Sunday, 01-Apr-12 07:10:02 UTC from web