How to find (f' or (f" or (" or (' with grep?
For example the regex could be (f\?["'] but how to pass this to grep - it can't be surrounded by quotation marks neither by apostrophes?
How to find (f' or (f" or (" or (' with grep?
For example the regex could be (f\?["'] but how to pass this to grep - it can't be surrounded by quotation marks neither by apostrophes?
This pattern in your question
f\?["']matches anfchar followed by?and one of"or'If the text is for example in
file, you might use:The pattern matches:
(Start group\(Match(|Or\bfA word boundary followed by matchingf)Close the group['\"]Match either'or"Output