DEV Community


Discussion on: Need help cleaning up this code, which modifies the subdomain.

dechamp profile image
DeChamp Author • Edited

gorgeous! I love me some regex. I was trying to do this yesterday but going about it all wrong. I was trying to abstract out the last part of the domain. Should have made it easy on myself and just find/replace the subdomain! Thank you!