Find and replace with wildcards
-
I’m using blogpress on my iPad to post to my wordpress blog. It uses the GPS to find and posts the location to the blog in the form :
<p class="blogpress_location">Location:<a href="http://maps.google.com/maps?q=Miami,United%20States%4016.327043%2C-81.166456&z=10">Miami,United States</a></p>
I want to be able to show a Google Map in the blog instead and am using Google Maps v3 Shortcode, which needs the format :
[map w="500" h="400" map id="map7" z="7" address="Miami Beach,United States" marker="yes"]
Any idea of some code or plugin that I can use to do a find and replace with wildcards to turn the link into the map shortcode.
Eg:
find<p class="blogpress_location">Location:<a href="http://maps.google.com/maps?q=**wildcard**&z=10">
replace with
[map w="500" h="400" map id="map7" z="7" address="**wildcard**" marker="yes"]
- The topic ‘Find and replace with wildcards’ is closed to new replies.