php - Regular expression to match time and IRC-Nick -



php - Regular expression to match time and IRC-Nick -

i'm not experienced in regular expressions , tried lot match string this:

16:02 <dj_bjarne>

with regex, didn't working result. want replaced by

<strong>16:02&lt;dj_bjarne&gt;</strong>

with regex works in php. give thanks you.

$post = "16:02 &lt; dj_bjarne&gt; hello mate!"; preg_replace("/(.*?&gt;)/", "<strong>$1</strong>", $post);

php regex irc

Comments

Popular posts from this blog

ios - Fragment Shader GLSL for texture, color and texture/color -

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -