Editorial Workflows

Find & Replace

public workflow

Install Workflow

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Finds occurrences of a regex in the document and asks for each one, whether it should be replaced.

Shared by: http://www.macdrifter.com/2013/09/editorial-workflow-find-and-replace-with-confirmation.html

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
Offset
Value
0
Request Text Input ?
Title
Find (RegEx)
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
Pattern
Value
Input
Request Text Input ?
Title
Replace with
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
Replacement
Value
Input
Count ?
What to Count:
  • Words
  • Sentences
  • Lines
  • Characters
Set Variable ?
Variable Name
Repl. Length
Value
Input
Document Text ?
Folded Text
  • Include
  • Replace with:
Repeat… ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
Pattern
Match Group
0 (entire match)
Reverse
OFF
Select Range ?
Range (from:to)
Offset+%repeat:range+Offset
Relative to
  • Entire Document
  • Current Selection
Show Alert ?
Title
Replace this?
Message
Button 1
Replace
Output Value
replace
Button 2
Skip
Output Value
skip
Button 3
(don't show)
Output Value
Show Cancel Button
ON
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
replace
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Count ?
What to Count:
  • Words
  • Sentences
  • Lines
  • Characters
Math ?
Expression
Offset+Repl. Length-Input
On Error
  • Stop Workflow
  • Output "ERROR"
Result
  • Pass to Next Action
  • Store in Variable:
Offset
Replace Selected Text ?
Replacement Text
Replacement
…End If
…End Repeat