Hi,

I've tried to use the following regexp to exclude facebook links to have a extlink icon, but it doesn't work.

Regexp :
\*\.facebook\.com/\*

What I've doing wrong ?
Any exemple or documentation to exclude domains ?

Thank you,

Comments

gpltwc’s picture

You can use this expression to exclude links to facebook.com:

.*facebook\.com\/*.

nothinghere’s picture

Thank you !

I've tried to escape all "." characters.

Seem to work now.

I've added following regexp to escape all extlink icon near all social links :
.*facebook\.com\/*. .*twitter\.com\/* .*linkedin\.com\/* .*google\.com\/*

Seem to work, execpt for twitter.com ... strange. Any tips ?

Links for twitter are in this format : "http://twitter.com/intent/tweet...." Maybe I should just add this : twitter\.com\/* ?

bart.hanssens’s picture

Perhaps try this : .*(twitter|facebook|linkedin|google)\.com\/*

gro11ver’s picture

Thank you for this solution bart.hanssens. It works.

liquidcms’s picture

yup, regexp is a bitch... i see advantage to provide something url specific; but sad they never adopted patch i submitted for D6 version here: #802562: Only apply in certain DIVs which was ubersimple to use.

elachlan’s picture

Status: Active » Closed (fixed)

#1902220: Add CSS selector inclusion/exclusion should make this easier for you, if you want to exclude a whole region like a footer.

beauregard’s picture

for me #3 did not work. so I tried this:
(.*facebook\.com\/*.)|(.*google\.com\/*)|(.*twitter\.com\/*)

which was working on my site