initial experimental code for regex indexing