I have some data that is being pulled from a database that I want formated and I am wondering if REGEX would be the best thing to use to add said formatting:
[list][*]
Format first instance of “General:” to “<strong>General:</strong>”
Format first instance of “Points of Interest Ashore:” to “<br /><strong>Points of Interest Ashore:</strong>”
Format first instance of “Points of Interest Afloat:” to “<br /><strong>Points of Interest Afloat:</strong>”
[code=php]
# Variable containing TEXT data from database
/* Example of text contained in string object $data:
“General: Includes the chart from just north of the Bay Bridge to Herring Bay. Points of Interest Ashore: Annapolis, U.S. Naval Academy, Sandy Point State Park, and Deale. Points of Interest Afloat: Severn River to upstream of the Rte 50 bridge, Whitehall Bay, South River the entire West, and Rhode Rivers, and Herring Bay.
*/
$data = $rs->[“description”];