Regular Expressions 101

Community Patterns

1...34567...877

Select last paragraph of a text

0

Regular Expression
ECMAScript (JavaScript)

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

Description

Selects the last paragraph of a text.

Submitted by Optimiza.tech - 2 years ago