Page 1 of 1

Remove everything until certain word

Posted: Fri Jul 20, 2012 1:22 am
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).

Re: Remove everything until certain word

Posted: Sat Jul 21, 2012 7:52 pm
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.

Re: Remove everything until certain word

Posted: Tue Jul 24, 2012 11:42 am
by ibinsano
works like a charm.
Thanx so much.