Jump to content
Ketarin forum

How to use quantifier in regexreplace function?


MAPJe71
 Share

Recommended Posts

Hi,

 

I defined a textual variable which uses the regexreplace function to rearrange some values e.g.

 

{mytemp:regexreplace:(\d{1,2})\s(\d{1,2}),\s(\d{2,4}):$3-$1-$2}

 

It uses the '{...}'-quantifier but this conflicts with the Ketarin-variable-definition.

I re-defined the variable to

 

{mytemp:regexreplace:(\d+)\s(\d+),\s(\d+):$3-$1-$2}

 

but was wondering if there is another solution e.g. 'escaping' the curly brackets (tried '\', did not work).

 

Thanks,

 

Menno

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.