Rick, Christopher, and eremita, Thank you very much for taking the time to respond. Very helpful! Lots for me to dig into, but I really appreciate the explanations.
One quick follow-up. I like the idea of using scripts and textfilters. eremita's script example was perl, I see. I have no experience with perl, but I am guessing you can just script in BBEdit and save to a textfilter folder that BBEdit uses...? thanks again On Monday, March 4, 2013 9:54:55 PM UTC-7, Scott wrote: > > Hi guys, > > I am fascinated by the GREP capabilities of BBEdit and have been trying to > immerse myself in it. I am a complete regex newbie, but I'm starting to > understand some of the concepts. However t I need some more practical > examples in order to figure it out. > > Here's my latest problem. > > Let's say I have a URL like this: > > *http://www.mysite.com/section/subsection/Z3245678a34/* > > And I want to turn it into an html link with the last element as the > highlighted text: > > *<a href="**http://www.mysite.com/section/subsection/Z3245678a34/** > ">Z3245678a34</a>* > * > * > What would I use as the search & replace values? > > I hope to learn how to find substrings between certain characters (like > "/"). The "*Z3245678a34"* could be anything. "Unicorn123", "mypage"," > learningisfun4all". > > Any help would be much appreciated. Also if anyone knows of some good > sites with lots of GREP examples, I'd be grateful. > > thanks > > SB > -- -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> 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]. For more options, visit https://groups.google.com/groups/opt_out.
