Conversation
Dashes
-
What's wrong with this expression??? grep -r -P '(?=Event::handle)\(\'.*?\'' . | less
about a year ago from web-
@ponydude My command line keeps saying quote> but I escaped the quotes that are part of the regex :/
about a year ago from web-
@ponydude Are they in a context where they need to be double-escaped?
about a year ago from web-
@toksyuryel The context that's failing is my shell, so I don't think so.
about a year ago from web -
@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-
@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-
@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-
@ponydude What about single quoting the string and using double quotes inside the string?
about a year ago from web-
@toksyuryel But then it wouldn't match the contents of the file. The file contains single quotes.
about a year ago from web-
@ponydude Ah. Hm.
about a year ago from web -
@ponydude Trying to find all plugin hook locations? ;p
about a year ago from web-
@minti Yeah. It's not going over too well.
about a year ago from web -
@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
-
-
-
-
-
-
-
-
-





