LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Scan from string pattern for "match everything" ?

Solved!
Go to solution

Hello,

Using Scan from string for a while, I know that %s only matches string up to a whitespace. And I also thought %[^] would match everything including whitespaces. But it turned out that it would stop at the closing square brace.

 

So, what is the real scan pattern for match everything including whitespaces ?

0 Kudos
Message 1 of 7
(3,670 Views)

Hi,

 

I just tried it out and %[^] worked for my string. What does the string look like that doesn't work?



Remember Cunningham's Law
0 Kudos
Message 2 of 7
(3,592 Views)

Hello PeterFoerster,

 

With input [1,2,3]  , Scan from string pattern %[^]   would return [1,2,3   and the remaining string is ]

 

 

0 Kudos
Message 3 of 7
(3,544 Views)
Solution
Accepted by topic author sdfsdfsdfadgadf

What do you want the Scan From String to end on?  Or are you just grabbing the rest of the string?  If that is your scenario, then just use the "remaining string" output.  It might help if you give a full example of a normal input string and EVERYTHING you want as an output.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(3,495 Views)
Solution
Accepted by topic author sdfsdfsdfadgadf

%[^ ]

 

you just need a space after the caret 

 

If you REALLY want a "Match everthing"  %[\00-\FF] (Case sensitive) matches one or more ASCII charaters in the entire set of possible characters


"Should be" isn't "Is" -Jay
Message 5 of 7
(3,483 Views)

Hi Jeff·Þ·Bohrer, crossrulz. All good inputs and are well solution. Thanks ! Smiley Happy

0 Kudos
Message 6 of 7
(3,443 Views)

I don't see any thank yous.  No kudos.  No marked solutions.  Jeff and I feel no love right now...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 7
(3,431 Views)