Jump to content

[SOLVED] Convert strings of text to <ul>

Recommended Posts



I am trying to create an Alfred workflow that will convert lines of text to an unordered list. Example:


Line 1

Line 2

Line 3

Line 4


When I copy the above text and run workflow, Alfred will spit out:


    <li>Line 1</li>
    <li>Line 2</li>
    <li>Line 3</li>
    <li>Line 4</li>


I don't have enough understanding of regex yet. Any help would be appreciated.



Edited by garyinsf
Link to comment
  • vitor changed the title to [SOLVED] Convert strings of text to <ul>

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...