Search
Wednesday
Jul082015

Workflow Example: Text [Prefix & Suffix]

This workflow allows text to be added to the start and end of lines of text. The workflow begins by generating some sample text. It takes a standard string of text ("The quick brown fox jumped over the lazy dog") and replicates it a number of times specified by the user. The workflow even accommodates zero times.

The workflow generates the text and then displays it so you can see the before and after effects.

The user is then prompted to enter the text to prefix and append each line with. Both are optional and both can be applied at the same time.

Once set, the workflow carries out a find and replace using a regular expression and the prefix & suffix provided. The final result is then displayed.

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>