Regular Expressions 101

Select last paragraph of a text

Open Workspace
  • JavaScript
  • Match
0

Regular Expression

/
(?<MyLastParagraph>.*\s)$
/
g

Description

Selects the last paragraph of a text.

Submitted by Optimiza.tech