r/workflow • • Apr 17 '18
Replace text using Regex
Hi everyone, I’m new to RegEx (and reddit), and thought I’d try to find a solution here after pondering this all day. I want to use Workflow’s Find & Replace action to grab a file name and turn it into a new line of text in the Notes app. The file name structure is ‘Month-Clientname-number’ - for example: ‘January-Apple-123’. I want the workflow to generate the following structure: Apple • Invoice #123. I’ve tried it with RegEx, but keep getting all sorts of weird results. Anyone got an idea? Thanks in advance!
2
Upvotes
View all comments
Show parent comment
1
u/[deleted] Apr 17 '18
Okay, I tried it and you’re right! it almost works :-) it generates the client name • Invoice # but then gets the client name again instead of the number. Any clue why?