PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
In a script that contains similar <td>'s, also the 0.69070 is subject to change. The preg_match that I am using isnt working and I cant work out why. I imagine it is something to do with the regex. The code that it is searching for is located in dump.text and this is all working fine, it just seems to be the preg_match.
Any help would be appreciated,
Thanks
Rhys
htmlspecialchars() convert html characters ( < , > , " , ' , & ) to html safe values so when you check the data against the pattern there is no < or > because they were converted to < and >
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Thanks for that
Do you know how I could do something similar without it affecting my Regex code? E.g rather than display the HTML code, write it in normal?
Or would you know how to change the regex?
Thanks
Rhys
rascle wrote:Thanks for that
Do you know how I could do something similar without it affecting my Regex code? E.g rather than display the HTML code, write it in normal?
Or would you know how to change the regex?
Thanks
Rhys
Run the regex before converting special characters