I need to eregi_replace all instances of [FONT=courier]src="[/FONT], [FONT=courier]href="[/FONT], [FONT=courier]background="[/FONT] in a string with [FONT=courier]src="../[/FONT] and so on...
But I need to make sure I don't replace the instances that contain protocols.
For example, the output will produce: [FONT=courier]src="../http://www.domain.com/..[/FONT], which is obviously invalid.
Is there a regex pattern I can use to only replace instances that do not contain protocols?