Welcome Guest, Not a member yet? Register   Sign In
pre_replace not sure what the correct expression is
#2

[eluser]sophistry[/eluser]
three things which won't solve your issue, but may help you move forward more swiftly:

- if you want to only replace tags OUTSIDE of html tags, then why does the replacements var show $tag IN an anchor tag?
- which HTML tags? is it only text in anchor tags you need to protect? or is there some other tag?
- why do you use a negative assertion ?! and then a negated character class [^<] in the patterns var? that's confusing to have a double-negative in a pattern. you could probably simplify that. EDIT: also, incidentally, i see the star has no repeat on it which means zero or one character.

cheers.


Messages In This Thread
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 06:25 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 07:19 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 07:50 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 08:10 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 08:20 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 08:42 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 09:16 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 09:39 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 09:43 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 10:17 AM
pre_replace not sure what the correct expression is - by El Forum - 09-21-2009, 11:13 AM
pre_replace not sure what the correct expression is - by El Forum - 09-22-2009, 02:26 AM
pre_replace not sure what the correct expression is - by El Forum - 09-22-2009, 03:13 AM
pre_replace not sure what the correct expression is - by El Forum - 09-22-2009, 04:50 AM
pre_replace not sure what the correct expression is - by El Forum - 09-22-2009, 06:15 AM
pre_replace not sure what the correct expression is - by El Forum - 09-22-2009, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB