LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about match regular expression

Colleagues,
Very stupid question. I would like to get substring between "..." symbols. For example, string 02 July from Explosion occurred on "02 July", 2008.
How to do this with single Match Regular Expression?
For example such expression ".*" will give me "02 July":
But I would like to get it without " symbols!
I tried this "[~"]*" and this "[~"].*", then read this and this , and all without success... But I'm sure it should be possible. Can you help me?
 
Andrey.
PS
This regular expression should give exactly the same output as following construction:
 
0 Kudos
Message 1 of 5
(3,659 Views)
I'm only using 7.0 now, but you can do this with Scan from String...

%[^"]"%[^"]"%[^"]




Message Edited by Phillip Brooks on 07-02-2008 02:47 PM
Message 2 of 5
(3,629 Views)

Hi, Phillip,

thank you for suggestion. Sure, I can do it with ten different methods. But the challenge is: how to get this result with Match Regular Expression (single called).

I read Help twice. For example, Help says: "...The longest string within parentheses can be matched with following pattern: (.*)...)

OK, I will change my test string and try it:

is something wrong with Help, with my understanding, or with LabVIEW itself?

Andrey.

0 Kudos
Message 3 of 5
(3,617 Views)
back to my previous example:
 
Andrey.
0 Kudos
Message 4 of 5
(3,609 Views)
Finally solved. Was too easy:
Smiley Very Happy
Andrey.
0 Kudos
Message 5 of 5
(3,571 Views)