RegEx
Posted: Thu May 31, 2018 8:46 am
I could use a little help with a RegEx expression.
I a Switch flow we are renaming files by using the e-mail subject attached to the file. The subject may contain characters like !^<>\ which are considered illegal characters to be used in a filename.
I want af RegEx to sort out everything but these characters, put this in Private data and then use this Private Data information to rename the files.
I'm using this RegEx: [^(?!.*:^<>)]
Testet on regex101.com this will do this T*e:s<t = Test
However, when used in Switch it seem to only return the first character, so T*e:s<t = T
Any ideas?
I a Switch flow we are renaming files by using the e-mail subject attached to the file. The subject may contain characters like !^<>\ which are considered illegal characters to be used in a filename.
I want af RegEx to sort out everything but these characters, put this in Private data and then use this Private Data information to rename the files.
I'm using this RegEx: [^(?!.*:^<>)]
Testet on regex101.com this will do this T*e:s<t = Test
However, when used in Switch it seem to only return the first character, so T*e:s<t = T
Any ideas?