Questions tagged [low-replace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
92 views

Stash Index and Low Replace

I am trying to put a multiple choice filter into a stash index and running into some issues. From the debug output it would appear that its a parse order issue as the debug match statement shows my ...
1
vote
1answer
99 views

Using Low Replace with {site_url} not working

I'm having a problem making this Low Replace statement work. Basically I'm trying to use Low Replace to change any local URLs for images to use our CDN URL. I am using the {site_url} EE variable and a ...
1
vote
2answers
487 views

Need a regex ninja's help with replacing a YouTube string

I'm looking for some help with replacing YouTube embed codes with something that can be used with AMP pages https://www.ampproject.org/ Example, we would like replace this: <iframe ...
0
votes
1answer
114 views

Trying to display specific code based on current language

I'm using Transcribe 1.6.2 with EE 2.10.3. Our site is in both English and French, and due to differences, I need to adjust some of the template code slightly depending on the current language. I'm ...
0
votes
1answer
20 views

Limit a Low Replace query to only the first instance

Is there a way to limit the "find" and "Replace" to only the first occurance of an item? For instance, I want to replace only the the first < p > tag with < p class="lead"> Thanks. Russ
1
vote
1answer
54 views

How to correct misformatted URLs in input

I'm trying to use Low Replace to correct URLs in a standard text field in EE. Sometimes the URL is inputted correctly, for example http://www.a-website.com other times they are inputted incorrectly ...
1
vote
1answer
102 views

Replacing backslash in content with Low Replace

I am currently using Low Replace to clean up content exported from EE to be used as a JSON object. This means cleaning up new lines, spaces, escaping quotes and backslashes. I am able to get the first ...
0
votes
1answer
166 views

Low Replace - Change Case & Remove Space

Is it possible to change the case AND change spaces to underscores using Low Variables? Basically I was trying to use... {exp:low_replace find='\s+|\w+' replace='_|\l+' regex='yes' multiple='yes'}...
1
vote
1answer
57 views

Improve on these methods for displaying only the country name using Google Maps for EE

How would you display only the country name from an entry that has been geocoded with the fieldtype from the excellent Google Maps for ExpressionEngine (GMEE)?
0
votes
2answers
50 views

Using Low Replace and Low Nice Date Together

The database has a string which is a date in the format of dd/mm/yyyy (13/03/2014). No, it has not been saved to the database as a proper date/time. With Low Replace we are able to change the format ...
0
votes
1answer
80 views

Outbound Affiliate Links

So I have an affiliate account with TicketFly that will help us make a few bucks when we send someone to purchase a ticket through their system. My question is what do you guys think is the best way ...
0
votes
1answer
86 views

Low Replace inside Low search only finds first occurrence of query

i have a multi-language site setup with low search. every language has it's own collection - this works quite nice. Now i might have been a bit too excited about template partials and let the client ...
0
votes
1answer
114 views

Low Replace Skips First Match in Same Line

I have a Low Replace tag that uses a regex to target links: {exp:low_replace find='<a[^>]*href=QUOTE(.+)QUOTE[^>]*(.*)>(.*)<\/a>' replace='<a href=QUOTE$1QUOTE$2 style=...
0
votes
2answers
75 views

How do I set dynamic values based on previous entries?

I am working on a volunteer signup form where some of the fields have a limited number of slots available (for example Monday setup needs 15 people). I am good with the form in general but I need a ...
0
votes
2answers
137 views

Replacing Wygwam p tag with h1 also adds an empty p

I have the following to strip out the p tags that are auto generated by Wygwam. For some reason it's not happening for me! <h1>{exp:low_replace find="<p>"}{hero_article:articles_title}{/...
2
votes
1answer
90 views

Increment count in low_replace regex

I'm using Low Replace to allow users to add footnotes to the content of their entries. Anything wrapped in square brackets (like this: [[This would become a footnote.]]) will then be replaced with the ...
1
vote
1answer
104 views

Low Replace almost the same html

I'm looking to strip some html from an img area with Low replace. This works great, but I have varying heights and widths to deal with. So: {exp:low_replace find="height=QUOTE365QUOTE|width=...
1
vote
1answer
124 views

Low Replace problem inside a snippet

Here is my code in a snippet. Basically what low_replace does is just to convert spaces to dashes. {exp:low_replace find="SPACE" replace="-"} {permalink="product"}/ {field_a}- {...