Can we use textSearchInit(pattern, mode [, searchOptions]) for a regex as pattern?

Hey Logan ,

Thanks a lot! This really solved the problem I was having.