In documentation for a non-technical audience, I was asked about usage around the term "regular expression."

My colleague was asking if one of "RegEx", "Regex" or "regex" would be preferable, I responded with "regular expression" on first usage, then "expression" or "pattern" on subsequent usages.

Has anyone else had to tackle this question?

I fear my AP style guide is silent on this topic.