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*

1
  • 1
    When you say everything after do you mean a) everything after that string on the line containing it, or b) every line in the file after the line containing that string, or c) everything after that string on the line containing that string plus every line after it, or d) something else? Is the * in your example supposed to be literal or the regexp repetition metachar? Please edit your question to show concise, testable sample input and expected output to help clarify your requirements and give us something we can test a potential solution against. Commented Feb 20, 2020 at 14:57