You mean the "inv" command? There's no regex involved, it just looks for what you typed as a substring of the item name.
If you're talking about name matching in general, "fuzzy matching" as it's generally called, that's in ItemFinder.java - but again, there's no regex involved.