ahhhh … Super Cool ! Thanks Jean !! works like a charm.
> On Mar 14, 2022, at 5:32 PM, jj <[email protected]> wrote: > > Hi Devon, > > This AppleScript script > <https://gist.github.com/mixio/0cc693aa710e42ebae2a6094141b2971> should help > you to select the inner contents of any Nth <tag>. > > HTH, > > Jean Jourdain > > > On Monday, March 14, 2022 at 8:53:48 PM UTC+1 [email protected] wrote: > Thanks Sam. That grep pattern is fantastic! > > We can have a small worksheet with the grep pattern. We’ll search for N-1, > then in the worksheet select <Session> and cmd+E, toggle to the data file > window and cmd+G to find the next one. 😎 > > If this becomes a needed routine we’ll create something with XPath. > > Thanks! > > dEVoN > > > >> On Mar 14, 2022, at 11:48, Sam Birch <[email protected] >> <applewebdata://A44C3A34-DAF6-4B73-AAB6-6A2E5A2E23C7>> wrote: >> >> Devon, > >> XPath is probably the right move here, to be honest. >> >> That said, BBEdit can select everything up to (and including) the 200th >> occurrence of <Session> with this regular expression: >> >> (?s)(.*?<Session>){200} >> Hope this helps. >> -sam >> >> On 14 Mar 2022, at 13:51, Devon Hubbard wrote: >> >> We have the need to search through a ton of transactional data for things >> like the 200th occurrence of <Session> to dig into that specific node. One >> of our team members is thinking of writing an XPath thing, but then we >> thought there might be a way to do with this in BBEdit. Not through any >> grep magic I've been able to get working so far. Maybe a cool extension >> out there that does this? >> >> thanks >> -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/5285A45B-0068-4CDB-9E6A-99C66030F79C%40gmail.com.
