Thanks for your help, but it only parse first line of caption string...
"Kevin Spencer" <unclechutney@nothinks.com> wrote in message
news:ek5tsn0iHHA.5052@TK2MSFTNGP05.phx.gbl...
> (?i)(?<=caption\s*=\s*)"[^"]+
>
> First, I made the regular expression case-insensitive. Then I added a
> "Zero or more" space expression both before and after the equals sign.
> Then comes the quotation mark, followed by a character class indicating 1
> or more characters that are NOT a quotation mark. This captures everything
> between the quotation marks following "caption=" with or without spaces
> around the equals sign.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
>
> Printing Components, Email Components,
> FTP Client Classes, Enhanced Data Controls, much more.
> DSI PrintManager, Miradyne Component Libraries:
>
http://www.miradyne.net >
> "Grzegorz Danowski" <gdn__na@serwerze__poczta.onet.pl> wrote in message
> news:f10024$p3v$1@inews.gazeta.pl...
>> Hi,
>>
>> I'd like to read all lines of caption text from a string:
>> ...
>> Name ="Paragraph"
>> Caption ="The quick brown fox jumps over the lazy dog.
>> The quick brown fox jumps over the lazy dog. "
>> "The quick brown fox jumps over the lazy dog. The
>> quick brown fox jumps over the lazy dog. The qu"
>> "ick brown fox jumps over the lazy dog. The quick
>> brown fox jumps over the lazy dog."
>> FontName ="Arial CE"
>> ...
>>
>> First I used simple expression:
>> (?<=Caption\s=)".*?"
>> It worked wrongly because it gave only for first line of caption string.
>> I thought I should check if prefix is not present and I simply modified
>> my regex to:
>> (?<=Caption\s=)".*?"(?<!\r\n\s*)
>>
>> But the expression give the same result as previous - only first line of
>> caption string.
>> Meantime I tested another expression:
>> dog.\s"\r\n\s*".*"
>> And It worked as I expected (gave one last word from first caption line
>> and then whole second line). What is proper way to solve my problem?
>> --
>> Regards,
>> Grzegorz
>>
>> Ps. I tested all my expressions using Expresso 3.0 with checked options:
>> "Ignore Case", "Ignore White", "Multiline".
>>
>
>