Forum Discussion

SL12345's avatar
SL12345
New Contributor III
3 years ago

What is the correct syntax for regular expression in Snaplogic

Hi snaplogic Experts,

what is the right syntax for regular expression

^([^;]*;){6}[^;]{7}\K.

if i want to use it in replace function?
because this one:

$myString.replace(^([^;]*;){6}[^;]{7}\K., ‘’)

doesnt work

are there any escape characters or so?

Thank you

1 Reply

  • Take a look at the Java regex documentation as that is what is used.

    If you need more help, then an example input and output along with the regex might make it easier for me to grok what you’re doing.