Search String position issue

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
paramesh1985
Posts:81
Joined: Thu Sep 25, 2014 6:03 am

Search String position issue

Post by paramesh1985 »

Hi,

I have tried to search particular sentence in the text file using "strpos" function.

But i am facing an issue while searching. For example if the search sentence is "_VA1" means its filtering not only "_VA1" including "_VA11 & _VA12"

Any idea on this.

thanks.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Search String position issue

Post by kilianvp »

That is correct. Because _VA11 & _VA12 contains _VA1. The function works like the C strstr function. If you want to have only whole words, you have to search for "_VA1 ".

2 posts • Page 1 of 1