Regular Expressions 101

Community Patterns

Community Library Entry

-1

Regular Expression
Created·2018-01-23 06:59
Flavor·JavaScript

/
([{\(\[<]*)[^{\(\)}\[\]]*([\)}\]>]*)
/
gmyi
Open regex in editor

Description

break the code to first opening parenthesis and then closing use the groups individually not entirely . This is 40% correct online pattern but mixing it with first open then close groups in two different matches result in 100% success

Submitted by Muhammed