Hi, Mark Am 18.08.2011 um 10:23 schrieb Mark: > Does anybody know if there's a way to enter today's date via search and > replace? I have files with strings like this > <imported>2009-02-12</imported> > and I'm processing them with a text factory that does a lot of other stuff. I > would like it to also change the whatever date in that tag into the date when > I run the text factory.
I don't know if the text factory can do this all on their own. I would do a search/replace step, searching <imported>(.+?)</imported> replace with <imported>#DATETIME YYYY-MM-dd#</imported> This gives you a so-called placeholder. After running your factory you can simply choose Markup > Update > Document and all placeholders will turn in the actual date (check the "Placeholders & Includes" section in BBEdit's help for more infos on placeholder options). If you are doing a multifile search you can define a site (BBEdit > Setup) and apply the update function to the total site in one go. hope, this helps, Roland -- 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>
