Remove all from the beginning

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Post Reply
canis
Posts: 9
Joined: Fri Jan 18, 2008 5:45 pm

Remove all from the beginning

Post by canis » Thu Dec 23, 2010 4:29 pm

I have a lot of code lines with similar structure: <tag>(.... ,"{keyword}", .....)
How to extract {keyword} only?
How to remove (replace with nothing) everything from the beginning of the line until ," and from ", to the end of the line?

User avatar
DataMystic Support
Site Admin
Posts: 2206
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Remove all from the beginning

Post by DataMystic Support » Fri Dec 24, 2010 8:16 am

1. Use a find/replace, with Extract Option checked, using an EasyPattern of
<tag>(.... ,"[ capture(1+chars) ]", .....)

Replace with $1.

2. Use a find/replace, with an EasyPattern of
[lineStart, 0+ not cr or lf ],"[ capture(1+chars) ]",[ longest 0+ not cr or lf, lineEnd ]

Replace with $1.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest