On Thu, Nov 19, 2009 at 12:55:05PM +0100, Birger Borgwardt wrote: > Hello. I want to copy a text from a file name to the alt="" text field > F. example > picture.jpg to alt="picture" > > src="/images/thumbs/pic1.jpg" alt="" > src="/images/thumbs/pic1.jpg" alt="pic1" > > Is it possible in BBE?
Here is one way to do it. (This solution assumes that the tag actually has an empty alt attribute immediately after the src, and that the values are always enclosed in double quotes.) Find src="((?:[^"]+/)?([^"\.]+)(?:\.[^"]+)?)" alt="" Replace src="\1" alt="\2" Ronald -- 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.
