I once had a junior dev who thought that Regular Expressions and Regex were different concepts as they look so different. In that sense, a more systematic RegExp can be argued to be a more beneficial in some cases.
And yes, RegExp is usually pronounced Regular Expression, in similar fashion as const is constant. The point is to convey meaning.
View all comments
2
u/1Dr490n Mar 20 '24
I’m not sure what I hate more about this code: the result or that it’s called RegExp instead of Regex