Jump to content

I need a bit of regex help..


CosmosRP

Recommended Posts

I currently have a regex:

 

(\074color\s*=\042[0-9A-Za-z]+?\042\s*\076.*<\057color>)

 

.. that matches " <color="hexcode/colorname">anything[wildcard]</color> "

 

However, I want to change this so that it matches: " lt;color="HEXCODE/COLORNAME">ANYTHING[WILDCARD]</color>

 

 

I imagine its just a simple matter of editing the original regex, but i'm really inexperienced when it comes to this stuff. Can someone help? =O

Link to comment
https://forums.phpfreaks.com/topic/195119-i-need-a-bit-of-regex-help/
Share on other sites

The only difference I can spot is the capitalization, is that what you were getting at? If that is the case then you should only need to add a modifier. I suggest you post the exact line of code you are using rather than just the regex as I'm guessing your using ereg, which is now deprecated.

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.