G
Grzegorz Danowski
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".
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".