Greatest regex trick ever? Well, maybe. It's a pretty darned good one, anyway. I used regexes extensively in my last job (with ServiceNow), in both Java and JavaScript. I used variations on this trick several times, often together with another favorite “trick” of mine: using functions for the replacement value (both Java and JavaScript support this)...
No comments:
Post a Comment