I gave a definition for AI already. In fact, you quoted it. It's not the most precise one, but I don't have to provide a precise one. All I was doing was demonstrating that your implied definition was far, far too narrow.
There are many things that are considered AI that don't match the range you suggested for it. Genetic algorithms, neural networks, language learning systems, robots that take information from their environment, discard it, and drive into walls. They're never* going to think, but they are rightfully AI.
It's not a requirement of a field that it has tight definitions, especially one where different methods that seem in a similar spirit pop up somewhat regularly.
In essence, writing a computer program that uses heuristical and adaptive methods to generate regexes to match/not match specific lists could be a form of genetic programming (though there are other options) which is comfortably under the AI umbrella.
* never say never, but with the scale they're on at the moment, it seems a long ways off.