Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(?:[^\S\r\n]*)(=+)(?:[^\S\r\n]*)(.+?)(?:[^\S\r\n]*=+[^\S\r\n]*)?$
/
gm

Description

Beautifies (normalizes) headings of an XWiki page.

Submitted by pbodnar - 3 years ago