ratish
9 years agoVisitor
roRegex not accepting roString or String
I am trying to implement a search, where user enters the characters on the keyboard and I use the search String to lookup channels from a list matching.
The keyboard returns the entered string as roString.
If i pass this string to regExOb = CreateObject("roRegex", searchString, "i") , and then call regExOb.IsMatch(channel.channelName) does not return true even if it does match.
If i hardcode the searchString, the isMatch() function seems to function properly.
I even tried regExOb = CreateObject("roRegex", searchString.toStr(), "i"), but did not work.
Please help me to understand why roRegex does not accepts roString or String as matching-pattern.
The keyboard returns the entered string as roString.
If i pass this string to regExOb = CreateObject("roRegex", searchString, "i") , and then call regExOb.IsMatch(channel.channelName) does not return true even if it does match.
If i hardcode the searchString, the isMatch() function seems to function properly.
I even tried regExOb = CreateObject("roRegex", searchString.toStr(), "i"), but did not work.
Please help me to understand why roRegex does not accepts roString or String as matching-pattern.