4

You'll need to make the any-character match not greedy using a ?: <a[^>]*?href=QUOTE(.+?)QUOTE[^>]*?(.*?)>(.*?)<\/a> That'll probably help.


3

You might want to remove the closing </p> as well: {exp:low_replace find="<p>|</p>" multiple="yes"} ... {/exp:low_replace}


2

Thanks to Tom at EEHarbour, my problem has been solved. I didn't realize that there was any difference at all between the two tags {exp:transcribe:language_abbreviation} and {transcribe:language_abbreviation} and it seems like using the second is the way to go in this case.


2

A lot of people doesn't know, but EllisLab has a first party add-on for that: <p><a href="{exp:valid_url}{website}{/exp:valid_url}" target="_blank">Website</a></p> There's several first party add-ons available for download, despite not included on EECMS by default.


2

Your example actually worked fine in a test I did. But it could be that the curly brackets are encoded to entities, so the regex doesn't actually match. You could try this: {exp:low_replace find="(\{|&#123;)[\w\-]+?(\}|&#125;)" regex="yes"} {low_search_excerpt} {/exp:low_replace} If you're just filtering out those image tags, you could also ...


1

{site_url} is a late parsed variable, i.e. after tags are parsed. That means Low Replace will look for the literal string "{site_url}" rather than its content. You'll have to use the actual var's value here.


1

Thank you jrothafer for the answer. For those curious, here is the fix. It probably needs some cleaning up, but it's working. Matching pattern <(iframe)(.*)(src=\"https:\/\/www\.youtube\.com\/embed)\/(.{11})" width="780"><\/iframe> Replace pattern <amp-youtube width="480" height="270" layout="responsive" data-videoid="$4"></amp-...


1

Easy peasy, chief. I can't deal with going through the Low Replace docs right now, so you'll have to apply the right parameters, but here you go: Matching pattern: <(iframe)(.*)(src=\"https:\/\/www\.youtube\.com\/embed) Replace pattern: <amp-iframe$2$3 This will match groups iframe, anything inbetween iframe and the beginning of the src tag, and ...


1

Figured it out... 'BACKSLASH' => "\/" Also found out I didn't need to modify the plugin. {exp:low_replace multiple='yes' regex='yes' find='\/|QUOTE|NEWLINE|/\t/' replace='\|\QUOTE|SPACE'} Works like a charm.


1

I have discovered two ways of doing this which I thought might be helpful to someone, and am looking for improvements or better ideas if people have them. Method 1. Use a javascript plugin, as suggested by Justin Kimbrell, author of Google Maps for ExpressionEngine. Method 2. Use the extremely versatile 'Low Replace' ExpressionEngine plugin by Lodewijk ...


1

I believe the only part of the original URL you need is the numeric part, which contains the event ID. You should be able to build an anchor using something like this: http://www.shareasale.com/r.cfm?u=841156&b=234786&m=27601&afftrack=&urllink=www%2Eticketfly%2Ecom%2Fpurchase%2Fevent%2F{some regex that will extract numbers from your URL ...


1

Couldn't you use freeform's form info tag pair to perform a conditional check? You could use that tag pair to lookup how many entries already exist in your collection, and then everything flows from there. {exp:freeform:form_info form_name="your_form_name"} {if freeform:total_results < "15"} Thank you but this session is full {if:else} ...


1

If you could include the footnote number in the note itself, I think that'd be available via back reference in the Low Replace tag. So, if your footnotes were like this: [[This is a footnote.#1]] [[This is another footnote.#2]] Then, I think you could do this in your Low Replace tag: {exp:low_replace find="SPACE\[\[(.*?)(\#\d+)\]\]" replace="<span ...


Only top voted, non community-wiki answers of a minimum length are eligible