Thanks! Though I imagine in most cases the regular expression itself would be a fixed part of the codebase and not given as input.