01-26-2016 09:20 PM
hi friend recently i find some thing in match pattern string that it look like bug I want to know labveiw expert opinion about it
the possible bug is that
did you ever try to match (.) dot for use it in regular expression ? this icon could not find dot inside the string ?!!
also I think what if we try to find a character inside a string that is piece of Special Character
for example how you can use this icon for finding \b inside string like( hatef\blabview )?!
Solved! Go to Solution.
01-26-2016 09:23 PM
@Hatef wrote:
" how you can use this icon for finding \b inside string like( hatef\blabview )?!"
What "icon" are you talking about?
Can you post a VI that contains examples of strings and how you are searching them that makes you think there might be a bug?
01-26-2016 10:01 PM
this is vi for match . and \b
01-26-2016 10:08 PM
And why do you think there is a bug? What do you expect the results to be?
Did you read the help for Match Pattern, and drill down and find the help article "Special Characters for Match Regular Expression and Search and Replace String".
A period means "Matches any single character except a newline character. Within square brackets, . is literal."
A \b means "
The results seem to be exactly what the help file is describing.
01-26-2016 10:27 PM - edited 01-26-2016 10:28 PM
than you for answer RavensFan but I get a bit confused with your answer could you make a simple example vi to solve this problem?
problem is that
find( .) position (or offset) inside this string( hatef.labview)
find (\b ) position (or offset) inside this string( hatef\blabview)
I try use match pattern and I could not solve it
?!
your solution should find position or offset 5 for . and \b
01-26-2016 10:40 PM
[.] to find the period
\\b to find the backslash b
01-26-2016 10:53 PM
thank you for your answer
it realy work