Remove everything until certain word

Tool for Search and Replace across multiple files.
User avatar
ibinsano

Remove everything until certain word

Post by ibinsano »

I've been playing around a lot lately with TextCrawler2 but still having some problems.
How would I remove text up to a certain character/word? Is that even possible?

example: remove the first sentence. so everything up till the first dot (including that dot).
User avatar
Fool4UAnyway

Re: Remove everything until certain word

Post by Fool4UAnyway »

Find:
^[^\.]*\.

Replace by:
{leave empty}

That is, if you mean to match everything from the start of the document, or from each single line, if Multi-line Anchors is checked. However, that doesn't seem to work in the Regular Expression Tester dialog: it always selects anything up to and including the first dot, whether there are new line characters or not.
User avatar
ibinsano

Re: Remove everything until certain word

Post by ibinsano »

works like a charm.
Thanx so much.
Post Reply