Re: Regular Expression Help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Sandor Pakh (sandor_at_us-installations.com)
Date: 10/15/04


Date: Fri, 15 Oct 2004 14:47:16 -0400

oooo, that sounds like a great idea.
maybe you should write one of those :)
jk
-sandor

"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcglobal[dot]]net"> wrote in
message news:uwopo2thr2n0.1wbmxka8br722$.dlg@40tude.net...
| I need to find all occurrences of a comma in a string EXCEPT where it
| occurs between quotation marks.
|
| For Example:
|
| Field1,Field2,Field3,Fiel4,"Lastname, Firstname",Field5, Field6
|
| So I need to find the indexes of the commas except for the one that
| separates the last and first name.
|
| I figured a regular expression would be the way to go, but I cannot seem
to
| figure it out.
|
| Does anyone know of any programs that help you build regular expressions?
| Kind of like the wizard that helps you build a connection string? I know
| of various RegEx test programs, but I would like one to help me construct
| one. I evision a utility that could let me select options using a english
| like language, but then builds the regex behind the scenes
|
| Thanks for the help
|
| --
| Chris
|
| dunawayc[AT]sbcglobal_lunchmeat_[DOT]net
|
| To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
| replace certain words in my E-Mail address.



Relevant Pages

  • Regular Expression Help
    ... I need to find all occurrences of a comma in a string EXCEPT where it ... I figured a regular expression would be the way to go, ... of various RegEx test programs, but I would like one to help me construct ...
    (microsoft.public.dotnet.languages.vb)
  • attn: regex gurus. can this be done with a regular expression or using a different technique?
    ... I need to switch *whatever* appears before the comma with ... *whatever* appears after the comma. ... If this code revision is not possible with a regular expression, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: RegularExpression Validation for password in ASP.NET
    ... Can any one help me to write a regular expression to validate the password ... 3- Password must begin with an alphabetic character. ... single quote, double quotes, comma). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Regular Expression
    ... On Tue, 2 Jan 2007, zowtar wrote: ... You seem to be using a comma for alternation--that is to specify one of ... HOWEVER, you specify ... If I were writing a regular expression to pluck out the URLs in your ...
    (comp.lang.tcl)
  • Re: Regex exactly 0, 1 or 2 matches, {0,2} not working
    ... I was really hoping to keep it as a pure regular expression. ... ended up doing was having a boatload of different expressions, ... with a comma, 1 with a comma and a space, one with a comma, space and ... So basically how can you make a regular expression with 2 DIFFERENT ...
    (comp.lang.perl.misc)