Trying to get last regex on demand.
cat, dog, bearreturn last matches with index 0
return last matches with index 1
RegexFun - CODECS Dev

RegexFun

From CODECS Dev

regex

Example 1

Baa 21$

Example 2

Foo 10$, Baa 21$

(should return "Foo 10$, Baa 21$")

Example 3

FOO 10$, BAA 21$

should return "FOO 10$, BAA 21$""

Example 4

A cat, A dog, A bear

should return "A cat, A dog, A bear"

Example 5

{{#regex: cat, dog, bear |/\w+/e | {{uc:a $0}} }} 
should return A CAT, A DOG, A BEAR
A CAT, A DOG, A BEAR


#regex_var

{{#regex_var: index | default }}

Example 1

Look at Example 5 at let's print the match (0):

{{#regex_var: 0 | nothing }}
cat


{{#regex_var: 1 | nothing }}
nothing


regexall

{{#regexall: text | pattern | separator | offset | length }}

Example 1

11,2

#regexquote

{{#regexquote: text | delimiter }}

Example

{{#regex: {{{Items|}}} | %(?:^{{!}}(?<=,))(\s*{{#regexquote: {{{Favorite}}} | % }}\s*)(?:${{!}}(?=\,))% | '''$''' }}