Regular Expressions 101

Community Patterns

Match_Between_Nth_And_Nth+1_Occurence_Of_Character_Pattern

1

Regular Expression
ECMAScript (JavaScript)

/
(?:(?:.*?\|\s?){3})(.+?)(?:(?=\s?$)|(?=\s?\|))
/
i

Description

This regular expression is designed to work with character-delimited strings, and provides a means to specify the index of delimiter occurrence at which content is extracted.

Submitted by Connor Goddard - 9 years ago