what's wrong with Xicheng's pattern?:
,\s*("[^"]*"|[^",]*)
and replace with
|$1
as a result, the orig string
fred,"comma,comma,comma","quote",
another quote
becomes
fred|"comma,comma,comma"|"quote"|ano
ther quote
tested OK for .NET syntax in Expresso.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|