I regularly process largeish data files which contain various types of data including XML and JSON.
I would like to *extract* certain text from these files to a new file, but ditch the rest of the content. Simple example: surname=Skuttle&forename=Fred&datejoined=1/1/1900&insidelegmeasurement=100&favoritecolour=purple favoritecolour=purple&datejoined=1/1/1920&surname=Smiff&forename=John&insidelegmeasurement=100 surname=Skuttle&forename=Fred&datejoined=1/1/1900&insidelegmeasurement=100 surname=Skuttle&forename=Fred&datejoined=1/1/1900&insidelegmeasurement=100&favoritecolour=purple So if I want to extract the surname and datejoined I currently have to throw away everything that doesn't match, then play around with the formatting. Loadsawork. What I want to do is simply *match* the required text using a nice little RegEx and put this into a new file. Just like the "Process lines containing" except taking ONLY the matching text. I know that the answer is to learn Python / Perl / Awk... I don't have time for that and I like BBEdit! Ideas? -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/bbedit.
