Search
Saturday
Sep122015

Workflow Example: Split Text by Paragraph

This workflow shows how text can be chunked into separate elements by paragraph. It demonstrates this using two methods, a double new line not currently being possible to add into the Split Text action as a separator parameter. When run the user is prompted to select one of the methods using a menu action.

The first method takes a text action containing two new lines and stores this in a variable. That variable can then be used in the Split Text action as the paragraph separator.

The second method carries out a regular expression based replacement of two new lines with some placeholder text ("--Paragraph Marker--"). That placeholder is then used as a custom separator for the Split Text action which separates each paragraph into a separate element.

The results are then displayed via a Quick Look action for verification and sharing.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>