Questions tagged [regex]

The tag has no usage guidance.

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

Bypass/Allow Disallowed Key Characters

I am working on a plugin for EE3/4 which relies on a very specific html input naming structure. A search form input may have a name attribute which looks like the following: <input name="xy:State|...
0
votes
1answer
133 views

Template Route Regex

What's the syntax for excluding phrases from segments in template routes? For example, let's say I have a template group called "fruit." I have a template A with the template route: "/fruit/{fruit:...
0
votes
1answer
98 views

Stash regex query

I'm using Stash to set and retrieve a list based on channel entries. I want to filter the list by a 'column' of data defined by a pipe-delimited set of values. I'm having trouble though getting the ...
0
votes
2answers
151 views

Stash - 2 lists, match/against with a tag not outputting correctly

Somehow, I'm not able to get this to work. I am populating 2 lists at the top of a template. {exp:stash:set_list name="favorites" replace="yes" parse_tags="yes"} {exp:favorites:entries} {stash:...
0
votes
2answers
114 views

Switchee regex for numbers

Trying to get switchee to work with a regex check against a URL segment. For example following URL check if segment 2 is numeric: /property/123 Using: {exp:switchee variable = "{segment_2}"} {...
0
votes
1answer
67 views

switchee and regex

I use in a EE site Structure and Low events. I need to use switchee but I can't find the correct regex for a date format like this: yyyy-mm I use quit often this switchee regex: {case value="#^P(\d+)$#...
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 ...
1
vote
2answers
318 views

Stash Regex Match

In my stash:get_list how would I ignore case sensitivity. I know its something to do with '/i' but don't know a thing about regex. {exp:stash:get_list name="filter_list" match="#{stash:keyword}#" ...
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=...
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
173 views

Stash: get_list do not show some entries

So, have a exp:stash:set_list chock full of entries, I'm using them all over the site and on this one I need to show a limit of 3 (simple), random (simple) BUT we need to not show some entries. This ...
1
vote
2answers
232 views

Stash regex on title

I have a stash list of different plans that I need to break based on whether the word light is in the title or not. So here is what I'd like: One list of plans whose title contains the word light. ...