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

[eluser]bugboy[/eluser]
HI sophisty

1. sorry my mistake it should be.

Code:
$patterns[] = '/'.$tag.'(?![^<]*>)/i';
$replacements[] = '<a  href="'/'.$title_tag.'">'.$title_tag.'</a>';

this is just a snippet of code found within a foreach loop

EDIT: due to it removing elements

2. it needs too ignore

Code:
links: <a> and ignore in here</a>

images <img  />

and within them for example the src=" " and href=" "


3. im not to hot as you can see on regex so i suppose im muddling through but willing to learn

If you can see any better way then that would be great.

This isn't easy to understand and i have always found this difficult.


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