Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Note the danger if the string contains any single quotes. Commented Oct 13, 2015 at 20:45
  • Ah, yes, I hadn't looked closely enough. Single quotes wouldn't cause trouble but as you say, non-corrupted matching lines would be a big problem. Commented Oct 13, 2015 at 20:51
  • 1
    Yeah, Fixed it so it should snipe out just the string itself and leave everything before and after. But overall I like your idea of using a pattern file, pretty slick. I'll leave this up for completeness though, maybe it will help. Commented Oct 13, 2015 at 21:01