Extract static constants and use case regexp matching