Nuno Posted July 6, 2022 Share Posted July 6, 2022 I want to create a workflow, which does the following: 1. If my regex matches the URL obtained from current clipboard then open the URL in the browser2. Else do nothing. I started with the "conditional filter" object in order to match the regex but what then? Link to comment
giovanni Posted July 6, 2022 Share Posted July 6, 2022 @Nunoyou can achieve that by using a regex in a shell 'run script' object. For example, this workflow (keyword: urlcheck) will open the URL in your clipboard only if contains the words boris and resigns 😉 Link to comment
vitor Posted July 7, 2022 Share Posted July 7, 2022 Another option is to pass your clipboard contents to the Conditional, e.g. via using {clipboard} in an Argument and Variables Utility. Leave the “if” empty or set to {query} and connect the first output of the Conditional to the action to open the browser. Link to comment
Nuno Posted July 7, 2022 Author Share Posted July 7, 2022 Thank you all for your replies. I have figured out the operation method, and all is working fine now. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now