omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    RegExista

    Pythonista
    1
    1
    1254
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • webvex34
      webvex34 last edited by

      RegExista is a simple web form–based application for manipulating text with regular expressions. You can use it just for testing REs, for learning/exploring REs, or incorporate it into a workflow by adding it to your Actions menu. It automatically loads text from the clipboard and copies the results back to the clipboard.

      I have tried to keep it very simple. Hopefully, you can figure out how it works very quickly. If you need instructions, I've failed miserably. :) And if regular expressions scare you, it works fine for just finding and replacing normal strings.

      There are only a few options: to ignore case, to replace text, and to carry over the result for multi-step operations. It also has a quick lookup drop down for some common special characters. It doesn't have all the RE flags (multiline is on) and it doesn't store REs after you've painstakingly created them. You can easily edit the drop down list in the script if you have favorites, though.

      Here is a link to the application gist:

      <a href="https://gist.github.com/0854a663e84863cc5084">https://gist.github.com/0854a663e84863cc5084</a>

      And here is a link to the required forms module (the same one used in my previous example):

      <a href="https://gist.github.com/9e2163e1041a3e17d210">https://gist.github.com/9e2163e1041a3e17d210</a>

      Larry

      P.S. Here's an example of how you could use this in a workflow, to convert tabs into spaces. Copy a script to the clipboard, open RegExista, select "Tab" from the drop down, check Replace with, and type the number of spaces you want each tab to represent (e.g. four) into the Replace with box. Press the Apply button and check the results. If it looks good, you can close RegExista and the results will be in your clipboard ready to paste back into the editor.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors