I noticed yesterday after writing a comment in some code that one of my writing habits had changed, without me really noticing. So I thought I'd see what other people's opinions were.
Poll #17528 A regular holy war
Open to: Registered Users, detailed results viewable to: All, participants: 38
How do you write 'regular expression' in abbreviated form?
View Answers
regexp
11 (30.6%)
regex
24 (66.7%)
Something else
0 (0.0%)
I only ever write it unabbreviated
0 (0.0%)
I don't ever write it at all
1 (2.8%)
How do you pronounce the g in regexp / regex ?
View Answers
Hard, like in 'regular' (IPA /ɡ/)
23 (60.5%)
Soft, like in 'Reginald' (IPA /dʒ/)
13 (34.2%)
Something else
1 (2.6%)
I never pronounce these abbreviations
1 (2.6%)
Now I'm on the other side, I find myself wondering what the point of the p was in the first place – 'regex' is adequately unambiguous and takes fewer characters, so what's not to like? But I can't remember why I adopted the p spelling myself. I'd be quite interested to know whether there are any centralised sources (particular textbooks, library APIs, influential articles or some such) that might be responsible for popularising one or the other.