Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Demo
- /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- Options: case insensitive; ^ and $ match at line breaks
- Match the character “/” literally «/»
- Match the regular expression below and capture its match into backreference number 1 «((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])»
- Match either the regular expression below (attempting the next alternative only if this one fails) «(?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+»
- Match the regular expression below «(?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+»
- Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
- Match either the regular expression below (attempting the next alternative only if this one fails) «\((?:\([^()]+\)|[^()]+)+\)»
- Match the character “(” literally «\(»
- Match the regular expression below «(?:\([^()]+\)|[^()]+)+»
- Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
- Match either the regular expression below (attempting the next alternative only if this one fails) «\([^()]+\)»
- Match the character “(” literally «\(»
- Match a single character NOT present in the list “()” «[^()]+»
- Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
- Match the character “)” literally «\)»
- Or match regular expression number 2 below (the entire group fails if this one fails to match) «[^()]+»
- Match a single character NOT present in the list “()” «[^()]+»
- Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
- Match the character “)” literally «\)»
- Or match regular expression number 2 below (attempting the next alternative only if this one fails) «\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]»
- Match the character “[” literally «\[»
- Match the regular expression below «(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+»
- Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
- Match either the regular expression below (attempting the next alternative only if this one fails) «\[[^\[\]]*\]»
- Match the character “[” literally «\[»
- Match a single character NOT present in the list below «[^\[\]]*»
- Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
- A [ character «\[»
- A ] character «\]»
- Match the character “]” literally «\]»
- Or match regular expression number 2 below (attempting the next alternative only if this one fails) «['"][^'"]*['"]»
- Match a single character present in the list “'"” «['"]»
- Match a single character NOT present in the list “'"” «[^'"]*»
- Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
- Match a single character present in the list “'"” «['"]»
- Or match regular expression number 3 below (the entire group fails if this one fails to match) «[^\[\]'"]+»
- Match a single character NOT present in the list below «[^\[\]'"]+»
- Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
- A [ character «\[»
- A ] character «\]»
- One of the characters “'"” «'"»
- Match the character “]” literally «\]»
- Or match regular expression number 3 below (attempting the next alternative only if this one fails) «\\.»
- Match the character “\” literally «\\»
- Match any single character that is not a line break character «.»
- Or match regular expression number 4 below (the entire group fails if this one fails to match) «[^ >+~,(\[\\]+»
- Match a single character NOT present in the list below «[^ >+~,(\[\\]+»
- Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
- One of the characters “ >+~,(” « >+~,(»
- A [ character «\[»
- A \ character «\\»
- Or match regular expression number 2 below (the entire group fails if this one fails to match) «[>+~]»
- Match a single character present in the list “>+~” «[>+~]»
- Match the regular expression below and capture its match into backreference number 2 «(\s*,\s*)?»
- Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
- Match a single character that is a “whitespace character” (spaces, tabs, and line breaks) «\s*»
- Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
- Match the character “,” literally «,»
- Match a single character that is a “whitespace character” (spaces, tabs, and line breaks) «\s*»
- Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
- Match the regular expression below and capture its match into backreference number 3 «((?:.|\r|\n)*)»
- Match the regular expression below «(?:.|\r|\n)*»
- Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
- Match either the regular expression below (attempting the next alternative only if this one fails) «.»
- Match any single character that is not a line break character «.»
- Or match regular expression number 2 below (attempting the next alternative only if this one fails) «\r»
- Match a carriage return character «\r»
- Or match regular expression number 3 below (the entire group fails if this one fails to match) «\n»
- Match a line feed character «\n»
- Match the characters “/g,” literally «/g,»
- Match a line break
- Created with RegexBuddy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement