nikivi Posted September 29, 2017 Share Posted September 29, 2017 (edited) I want to extract the actual menu bar item from the menu bar search in this workflow. So that it extracts the menu bar item from the menu bar search. I came up with a regex to do that : https://regex101.com/r/bEHmFj/1 However I can't quite figure out how to apply it in Alfred. I looked into Alfred help page of Replace utility too. I am sure the regex is sound and works well. Thank you for any help. Edited September 29, 2017 by nikivi Link to comment
nikivi Posted September 29, 2017 Author Share Posted September 29, 2017 I also tried it with /""*"/g Link to comment
deanishe Posted September 29, 2017 Share Posted September 29, 2017 Alfred doesn't have an "extract regex", it has a "replace regex". That means you need to match what you don't want to keep. It's probably easier to do it with a Run Script, where you can do "extract regex". Link to comment
Fabio Posted February 5, 2018 Share Posted February 5, 2018 Hi, So, there is no way to use groups and replace something matched by \1 or $1 using Replace Utility? Link to comment
deanishe Posted February 5, 2018 Share Posted February 5, 2018 21 minutes ago, Fabio said: Hi, So, there is no way to use groups and replace something matched by \1 or $1 using Replace Utility? Certainly. That's exactly how it works. That isn't how Niki was trying to use it, though. 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