RE: [cfaussie] Reg Exp help

2010-10-15 Thread Steve Onnis
rrychester...@gmail.com] Sent: Friday, 15 October 2010 6:39 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Reg Exp help You're in the right track with the negative look behind (?!base) You don't seem to have the space in there though, if your tag is http://#server_name# you would ne

Re: [cfaussie] Reg Exp help

2010-10-15 Thread Barry Chesterman
You're in the right track with the negative look behind (?!base) You don't seem to have the space in there though, if your tag is http://#server_name# you would need to match; (?!base)\shref=http://#server_name# where \s matches a whitespace character Also, don't forget to escape the dots in your

[cfaussie] Reg Exp help

2010-10-14 Thread Steve Onnis
Hi guys Am at a bit of a loss atm with a regular expression i am trying to get working. Basically i need to remove the #server_name# from all links but only if the href is not inside a tag. This is what i have REReplaceNoCase(string, '(?!base )href="http://#server_name#";', 'href=""',