Re: Regex question



Gunnar Hjalmarsson <noreply@xxxxxxxxx> wrote:
> axel@xxxxxxxxxxxxxxxxxxxxxx wrote:
>> John wrote:
>>> Match a quoted string unless it is preceded by '--', the '--' can only
>>> be preceded by whitespace.
>>>
>>> e.g for a target string of :
>>>
>>> DISPLAY-HINT "1x:"
>>>
>>> "1x:" should be matched
>>>
>>> for a target string of :
>>>
>>> -- DISPLAY-HINT "1x:"
>>>
>>> nothing should be matched.
>>
>> Do I understand this correctly... when you say "1x" should be matched,
>> do you want to capture this value? If then the following will ignore
>> white-space at the start of the string, not match '--' at the start of
>> the string:
>>
>> /^\s*[^ -]{2}.*"(.*)"/
>
> What about 'P-HINT "1x:"' or 'A HINT "1x:"'? ;-)

It wouldn't works :(

So, maybe;

/^ (?! \s*--) .* "(.*)" /x

Axel



.



Relevant Pages

  • Re: Movie Maker 2 just wont work
    ... Thanks again, John. ... Funny that it worked so well long after SP2 had been installed. ... shopping for a different analog capture device. ... My DV camera doesn't have passthru capability. ...
    (microsoft.public.windowsxp.moviemaker)
  • For John Kelly re FAT source files
    ... Could not pick up yr response, John, so had to do this new ... force DMA on device 1, drive D:, the baddie? ... Re needing 32 bit data tfr mode...likewise...where to set? ... before capture too, just to flush out. ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Help lost the camcorder controls in WMM2
    ... capture pane. ... I think I asked for the preview pane to be turned off but there ... but I have to control the camcorder using its own controls whereas surely I ... "John Kelly" wrote: ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Civil War - Gettysburg Video
    ... Thanks John... ... in southern Michigan. ... >> the Encoder to capture ... >> PapaJohn ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Movie Maker 2 just wont work
    ... Why don't you just buy a converter plug?...they are a lot cheaper than ... > shopping for a different analog capture device. ... >>> John, I didn't describe my setup completely. ... My DV camera doesn't have passthru capability. ...
    (microsoft.public.windowsxp.moviemaker)