Author |
Message |
Topic: Remove URLs with regex_replace |
blinks
Replies: 0
Views: 16278
|
Forum: General Posted: Mon Aug 15, 2016 4:14 am Subject: Remove URLs with regex_replace |
I'm looking to replace HTML code like this:
<a rel="license" href="http://creativecommons.org/publicdomain/mark/1.0/"><img src="http://i.creativecommons.org/p/mark ... |
Topic: Getting rid of extraneous spaces |
blinks
Replies: 4
Views: 6011
|
Forum: General Posted: Thu Nov 10, 2011 10:54 pm Subject: Getting rid of extraneous spaces |
{$foo|replace:" ,":","} did the trick; thank you so much |
Topic: Getting rid of extraneous spaces |
blinks
Replies: 4
Views: 6011
|
Forum: General Posted: Thu Nov 10, 2011 10:17 pm Subject: Getting rid of extraneous spaces |
Unfortunately, str_replace doesn't work either. Both it and regex_replace result in $foo not displaying at all. I suspect the problem is related to the fact that $foo is actually HTML code. |
Topic: Getting rid of extraneous spaces |
blinks
Replies: 4
Views: 6011
|
Forum: General Posted: Tue Nov 08, 2011 10:17 pm Subject: Getting rid of extraneous spaces |
Am trying to get rid of all the extraneous spacing in the following line (mainly the bits before the commas) -
<citation >person 1 , person , person 3 , person 4 2013 , title [dataset], proje ... |
Topic: Match start of string |
blinks
Replies: 2
Views: 7039
|
Forum: General Posted: Fri Aug 26, 2011 6:02 am Subject: Match start of string |
Thanks mohrt, works beautifully |
Topic: Match start of string |
blinks
Replies: 2
Views: 7039
|
Forum: General Posted: Wed Aug 24, 2011 11:07 pm Subject: Match start of string |
I thought this would be simple, but it turns out to be harder than it looks!
What I want to do is match the start of a URL string, e.g. for http://www.domain.com/abc/1234, I want to match the &quo ... |
|