in reply to Efficiency in regex
Is there a more efficient way to check for one of the last names than to enumerate them like I have done?Sure. There's a module available which will look for the common prefixes and suffixes in the alternatives, and that way, create a faster regex: Regex::PreSuf
|
|---|