Hi everyone Amidst all the excitement for the new v.9.6, I hope there is time for my grep Q:
I am trying to make a grep search string which finds any HTML comment that has a double hyphen inside itself. It should find any HTML comment which: - starts with "<!--", - ends with "-->", - spans any number of lines, - contains two consecutive hyphen chars which are not part of the opening "<!--" or closing "-->". It should NOT match across multiple HTML comments. The find string must preserve anything it finds inside the HTML comment which is not the double hyphen.. so that I can replace in a way to just effectively strip out the double hyphen. I have been successful to create a grep for each of these criteria separately, and also some greps which include several of the criteria.. but so far I have not been able to come up with one which meets all my criteria. After making sincere effort, it will be very rewarding to see how one of you grep wizards does it. Thanks for any reply! -Govinda -- 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>
