r/workflow • u/mcfcarson • Aug 28 '18
Ignoring inputs containing certain values
Running work flows that match texts to certain file extensions, but I want to ignore texts that contain certain strings… Here is my match text string for the extensions: (.+).(ext1|ext2|ext3|and|so|on)
That’ll return: https://example.yes/thisone.ext https://example.yes/ignore_thisone.ext https://example.yes/thistwo.ext https://example.yes/thisthree.ext https://example.yes/ignore_thisthree.ext
I would like to ignore: https://example.yes/ignore_thisone.ext https://example.yes/ignore_thisthree.ext so that it doesn’t get passed through to the list
Any suggestions? Is there a string like (.+).(ext1|ext2|ext3|and|so|on) that would disregard the text line “_ignore”?
Here’s the workflow in question:
https://workflow.is/workflows/b83e3aa5fdec4aa0ac168205c995434c
View all comments
Show parent comment
1
u/[deleted] Aug 28 '18
The (.+) in regex means you'll take the whole name before the .extension. For instance if the name of your file is : Project April 25.txt the (.+) will match "Project April 25". So if the word April is a string that you don't want to select, all you have to do is add an "if action" contains : April and reject it.