Jump to content
garyinsf

[SOLVED] Convert strings of text to <ul>

Recommended Posts

Hello,

 

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:

 

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

 

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

 

Gary 

Edited by garyinsf

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...