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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details Split by period/full-stop outside of quotes
Expression
\.(?=([^"]*"[^"]*")*(?![^"]*"))
Description
This is intended to split a string by full stop except when inside a pair of quotes.
Matches
This.Will.Split.Only("Outside.These.Quotes").For.Example
Non-Matches
This.Only.Works.With('Double.Quotes')
Author Rating: Not yet rated. Tom Brewer
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 2

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