Deleting everything (to end of line) after a certain string
Posted: Tue Feb 28, 2012 2:38 pm
Hello everyone,
First of all a big thank you to the makers of TextCrawler, which really is a fantastic software, and exactly what I needed right now (and free as well!).
I was wondering if someone could give me a hand with the regexp that I need to use to do a find&replace across several files. There are rows in my files that end in strings like "A (..)", and I'd like to delete the end of all these rows, such that they just end in "A". I've tried using the following regular expressions: "A +", "A *", "A *\n", to be replaced with "A", however none of them worked, and only the character immediately following the A gets deleted.
Thanks in advance for any help!
First of all a big thank you to the makers of TextCrawler, which really is a fantastic software, and exactly what I needed right now (and free as well!).
I was wondering if someone could give me a hand with the regexp that I need to use to do a find&replace across several files. There are rows in my files that end in strings like "A (..)", and I'd like to delete the end of all these rows, such that they just end in "A". I've tried using the following regular expressions: "A +", "A *", "A *\n", to be replaced with "A", however none of them worked, and only the character immediately following the A gets deleted.
Thanks in advance for any help!