Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
<?php $str = ' This should be bold: this should not be bold <p>Intro text: this is a test.</p> <p>Hello world: How are you?</p> <p>This text should not be bold because there is no colon. Test 123.</p> <p>This text should not be bold because there a period before the colon. Test: 123.</p> <p>Foobar: Zooph.</p>'; $str = preg_replace('/(^|<p>)([^:<]+):/ims', '\1<strong>\2:</strong>', $str); echo $str; ?>