Editorial Workflows

Find & Replace (Popover)

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: Find occurrences of a regex in the document and ask for each one, whether it should be replaced (using a popover).

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
Select from List ?
Title
Replace this?
List (Lines)
Replace Skip
Multiple Selection
OFF
Show in Popover
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