Displaying page
of
pages;
Items to
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
of
pages;
Items to