Jump to content

Look for {strings} and add HTML


Disturbed One

Recommended Posts

Hello,

 

I am a long-time PHP coder, but can never figure out Regex!

 

I am trying to display text that has various tags in it, such as Hello {tag_name_here} etc. How can I replace all instances of these tags so the output would be Hello <span class="blah">{tag_name_here}</span>?

 

Note the { and } need to stay intact surrounding the tag.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/232910-look-for-strings-and-add-html/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.