Link to home
Start Free TrialLog in
Avatar of wildzero
wildzero

asked on

Regular Expression

Hmm
I am trying to do an expression and use preg_replace to remove all urls, except some
ie

/<a(.*?)href=\"(.*?)(ebay.\.com)(.*?)\"(.*?)<\/a>/

Where that would remove all urls except ebay.
but it dosn't replace anything, how can I tell it to 'ignore' ebay.com?
ASKER CERTIFIED SOLUTION
Avatar of steelseth12
steelseth12
Flag of Cyprus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wildzero
wildzero

ASKER

Great!
Thats working perfect