hey guys, I’m new to php regular expressions. I’m working on a forum which will allow the user to type in code (like this site) in between tags and the code will be highlighted. I want to use regular expressions to replace just the text in between the
[code]
tags. I’m having trouble with the pattern, here’s what I’ve got so far:
$inside=eregi(‘([][]
I’m able to pull all letters and numbers, but I’m not able to pull characters, and if there are tabs, spaces, or returns, then it won’t pick it up either. Is there a way to just get everything in between the
[code]
tags? Thanks!