RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Match by period/full-stop outside of nested brackets
Expression
[^.]*\((?>[^()]+|\((?<DEPTH>)|\)(?<-DEPTH>))*(?(DEPTH)(?!))\)[^.]*|[^.]+
Description
Matches groups separated by period/full-stop when outside of one or more balanced and/or nested pairs of brackets (i.e. top level processing). Note: This may only work with the .Net regex engine due to using stack push/pop
Matches
This(Will.Match.(In.The).Correct).Way
Non-Matches
This(Will,Not,Match,(In,The),Correct),Way
Author Rating: Not yet rated. Tom Brewer
Source Experts Exchange (ddrudik)
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials