I have this regular expression:
$buffer = preg_replace("/'([a-zA-Z0-9]+)'/iU",'$1',$buffer);
It removes single quotes when there's no whitespace between the quotes. I also replaces inside a html tag. I don't want it to do so.
Here's an example
<div id="Foo"></div>
Should be:
<div id=Foo></div>
And
<script>Foo='Bar'</script>
Should not change and therefore be:
<script>Foo='Bar'</script>