Greetings Gurus, I want to use a Regex Evaluator in a standard function but I'm not clear exactly on how to do it.
Let's say I have a simple function Go {clip}.
I'd like to do a regex replace on the {clip} as it's run.
How do I accomplish this?
Is it something like this, I want to test if the string has quotes?
@if:RegEx({clip}, "[^"]*")
@confirm Match
@if:else
@confirm No match
Greetings LXP, now is the syntax you provided for a Standard Opus function or a script?
I thought clipboard contents were accessed via {clip} not Clip().
Please elaborate a bit. Thanks
I'm trying to use the Regex to ensure there are no embedded quotes in the string followed by placing quotes (catch-all).
This function basically should go to the folder/file if the path has quotes or not.
Having this string on the clipboard and running the function yields no result.
"D:\APPZ\go clip.txt"
What am I doing wrong here? The Regex should be stripping embedded quotes. And the quotes outside the brackets are there?!
Thanks Errante, that did the trick. thanks LXP for pointing me in the right direction. Now after Go there are 3 quotes """ and before the closing parenthesis there are 4 quotes """" please explain that. I think I got it, it's 3 quotes to escape a quote. The fourth quote at the end is just the final quote for enclosing the entire function.
Also what's the link to the documentation where these examples are.