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 3
Title Test Details CSV Parser
Expression
((?:[^",]|(?:"(?:\\{2}|\\"|[^"])*?"))*)
Description
Very simple (but very useful!) regex to split CSV files. It does not drop the commas - you have to do that manually. Quotes are dealt with properly and escaped quotes are ignored. Matches from sample:this is ;a;"line,\"in\"a";csv;file
Matches
this is ,a,"line,\"in\",a",csv,file
Non-Matches
"
Author Rating: The rating for this expression. Alex Forencich
Title Test Details Query String Ampersand Replacer
Expression
&(?!amp;)
Description
Used to replace lone ampersands in query strings with their & counterparts.
Matches
var1=val1&var2=test
Non-Matches
var1=val1&var2=test
Author Rating: Not yet rated. Alex Forencich
   Displaying page 1 of 1 pages; Items 1 to 3

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