Editorial Workflows

FindInline

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 inline links with a regex and provide options to clean up a link or replace it.

Shared by: @viticci

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
initialSel
Value
Sel. Range: Start
Extend Selection To Current Line ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Find Inline Links with Regex ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
\[([^\]]+)\]\(([^\s]+\s"[^\)]*")\)
Match Group
0 (entire match)
Reverse
OFF
…End Repeat
Stop For No Links ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Select Range ?
Range (from:to)
initialSel
Relative to
  • Entire Document
  • Current Selection
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
No links found!
…End If
If Link Found ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Select from List ?
Title
Inline Links
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
ON
Set Variable ?
Variable Name
listout
Value
Input
Document Text ?
Folded Text
  • Include
  • Replace with:
Find ?
Search for
listout
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Show Alert ?
Title
Replace Link
Message
Choose the source
Button 1
Remove Link
Output Value
remove
Button 2
New From Browser
Output Value
inapp
Button 3
Google Search
Output Value
google
Show Cancel Button
ON
Remove Link ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
remove
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Find ?
Search for
\[([^\]]+)\]\(([^\s]+\s"[^\)]*")\)
Match Group (RegEx)
1
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
extract
Value
Input
Document Text ?
Folded Text
  • Include
  • Replace with:
Find ?
Search for
listout
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Replace Selected Text ?
Replacement Text
extract
Show HUD ?
HUD Text
Link removed
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
…End If
Replace with Browser URL ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
inapp
If… ?
Run the block if
Browser URL
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Find ?
Search for
\[([^\]]+)\]\(([^\s]+\s"[^\)]*")\)
Match Group (RegEx)
2
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Replace Selected Text ?
Replacement Text
Browser URL "Browser Title"
Show HUD ?
HUD Text
Link replaced
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
…End If
…End If
Replace with Search ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
google
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Find ?
Search for
\[([^\]]+)\]\(([^\s]+\s"[^\)]*")\)
Match Group (RegEx)
2
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Request Text Input ?
Title
Google Search
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Search Web ?
Search for
Input
Show HUD ?
HUD Text
Replacing with: Browser Title
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
Replace Selected Text ?
Replacement Text
Browser URL "Browser Title"
…End If
…End If