in reply to Unefficient Regexp 'Matching this or that'

If you change in the one_string version the filter from '00901808' to '87654321', does the execution time stay the same?

Also, if you replace the usage of regexps by a call to the index function (which in your case should be the same), and then compare the one_string with the two_string version, how does the time increase in the second case?

-- 
Ronald Fischer <ynnor@mm.st>