Jump to content

how to use regex


optikalefx

Recommended Posts

so i have a div with text, and the text is all html, but you can see it.  so it looks like

 

<html>

<p> hi </p>

<br>

 

blah blah

 

i have thiis regex query

 

<([A-Z][A-Z0-9]*)\b[^>]*>(.*?)</\1>

 

which will find all tags

 

how can i use that.  I want to turn all tags blue on the page.

 

 

Link to comment
https://forums.phpfreaks.com/topic/103220-how-to-use-regex/
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.