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 1
Title Test Details Pattern Title
Expression
(?<=(?:^|,)")(?:[^"]|"")+
Description
A regex that will split a CSV file when used for MATCH function. All values must be in quotes, and seperated by commas. Ex. &quot;test1&quot;,&quot;test2&quot;,&quot;test3&quot; Quotes themselves are not captured Note: Only works in regex engines that support backreferences (Java, .NET, php, etc). JavaScript is not one of them.
Matches
"test1","test2"
Non-Matches
test1,test2
Author Rating: The rating for this expression. Andrew Stakhov
   Displaying page 1 of 1 pages; Items 1 to 1

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