Jump to content

Search the Community

Showing results for tags 'regex'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 11 results

  1. Hi, [Objective] I am trying to build a workflow which gets a DOI link [e.g. https://doi.org/10.1287/orsc.3.3.398] and sets my clipboard to some text from a pulled JSON file. In this case (Orlikowski, 1992). However, I am having a hard time importing the query from Alfred in to the file, and getting it back. I have written the python script, lack the means to use the file. I have made the beginning of the workflow, using regex to focus on the link I need (e.g. 10.1287/orsc.3.3.398) with the regex key - (\/\d{2}.\d{4}\/\w.*), def main(): urlData = "https://api.cr
  2. Yo I need some quick help about building this workflow. Assuming I have some content on my clipboard that contains: <p><a href="https://extreme-commerce.teachable.com/courses/392385/lectures/9786542?wvideo=kq8qkcou90"><img src="https://embed-ssl.wistia.com/deliveries/ebed1d02876b16bbe631160edc9168069bdd66c1.jpg?image_crop_resized=800x432.5&amp;image_play_button_size=2x&amp;image_play_button=1&amp;image_play_button_color=09A59Ae0" width="400" height="216.25" style="width: 400px; height: 216.25px;"></a></p><p><a href="htt
  3. I want to copy something like wp-content/plugins/event-tickets/tests/restv1/TicketNotAccessibleCest.php and convert it to codecept run tests/restv1/TicketNotAccessibleCest.php and paste it the "event-tickets" part is variable, which is why I used regex to match \w When I run with debugging on, it's like the Clipboard (what I think should be {query}) is blank. Screenshot: https://cl.ly/120d35b1fd91 Is that a bug or an error in my workflow? Workflow is here: https://cl.ly/005392a2a9cd Thanks for helping!
  4. Why I need this? Sometimes I just found myself repeating copy/paste URL and title from Chrome to write some reference. Even worse, different apps accept different format (Yeah, I'm talking about you, Ulysses!). So here is my workflow: Usage Just type \\u in your favorite app. Problem 1. I tried and failed to use matches regex in Filter Utility, that's why I have to hard coded three (and maybe more in the future) filter. This is my failed attempt: Notes|Evernote|scapple 2. The else (marked in red in scr
  5. Perform a search and replace on copied text, and save regexs for future use. Download: http://code.instructorium.com/downloads/Regex.alfredworkflow Please visit http://code.instructorium.com/regex for more information. (also on Packal: http://www.packal.org/workflow/regex ) A summary is below: Commands you can use: 1. Any regular expression (no keyword necessary, Perl-style) "s/this/that/msg" "s@\$(\d+)\.(\d{2})@$1 dollars and $2 cents@g", etc. 2. Follow your regular expression with " save as " and then a name in order to save it for future use. "s&this&am
  6. Hello, there is a filter where I can run script only if query matches reges. For example I can do: ^(ERROR:) So script will continue on only if query starts with "ERROR:". But how can I do something like "else" fir this "if"? I found out I can do second filter and put there: ^(?!ERROR:) So another regex that means "does not start with ERROR:". But what if there is really difficult regex? Do I really need to rewrite it? Or is there some way to do ELSE for filter?
  7. Here is a workflow for bulk renaming files. You select some files either in Alfred using the File Navigator or the File Buffer and use the File Action called "Rename with BulkRename", or select the files in Finder and use the hotkey to trigger the workflow for the selected files. Once triggered, Alfred will display a preview option and a bunch of preset actions that you can select. The preview option will display the modifications that will be made for each preset action listed. Preview Here are a couple of snapshot portions of what you see when pressing the Shift key:
  8. Hello! I'm writing a workflow based on a file action, and at one point in there, I would like to use the replace / regex function to extract just the filename, without the full path or the extension. I've tried googling and trying a bunch of options, but I haven't had the time to fully ingest Regex properly yet, and nothing I've found has worked. Anyone care to help me out? :-D Here's an example of a full path I'm working with: ~/Desktop/Testing.mov I would like to just extract "Testing". I hope one day I can look back at how silly it was to ask such
  9. Hi everyone! Introducing Regex. http://code.instructorium.com/regex/ Copy any text on your computer. Fire up Alfred and type your search-and-replace regular expression. That's it! Other Features: 1. There is a "quoted" mode (sq) for people less familiar with regex, or simply for convenience. It disables all escaping, interpolation, and regex features. It is a plain-old search and replace. 2. You can save regexs you use often under a name, then execute them by name whenever you want! 3. coming soon: match previews The download link is on my website, which als
  10. I've just made a simple workflow to test whether a Regular Expression matches a given string. You type the match keyword followed by the regex to test against everything that comes after. I hope someone else find it useful. Here's the download link: http://cl.ly/Og94 Any bug or feature requests, please ping me at https://twitter.com/samflores.
  11. Hey Guys, I was playing around with the Script Filter XML a bit and now I have the following script, which does not work, but I cant tell why: cat << EOB echo "<?xml version='1.0'?>" echo "<items>" for line in $(gpg --list-keys | grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b") do echo "<item uid='$line' arg='$line'>" echo "<title>$line</title>" echo "</item>" done echo "</items>" EOB Strange thing is: When I execute the script in my bash an copy the output as xml in the ScriptFilter, everything works fine. I s
×
×
  • Create New...