I have a large text file that I need to search for certain substrings and I would like to use the speed-up that
TextSearch gives. Unfortunately, with
TextSearch queries will only match entire words:
f = Export["~/test.txt", "1234 1234"]; TextSearch[CreateSearchIndex@f, SearchQueryString["*23*"]]
I'd prefer not to use
StringCases as it is very slow on the large document. Is there some way around this?