madpoet 0 Posted July 11, 2011 Report Share Posted July 11, 2011 I've got a csv file where one of the columns is domain names. I need to enter the name without the extension into a field in cpanel. How do I trim the domain from the . on and then input the name? Having trouble figuring it out. Thanks,Paul Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 11, 2011 Report Share Posted July 11, 2011 You need to use regex with that. Put your current url in a variable then use $replace regular expression then put this string \.\w{3,4} this will match the domain extension and replace it with nothing. Quote Link to post Share on other sites
Biks 9 Posted July 11, 2011 Report Share Posted July 11, 2011 I basically went over the whole process here: http://ubotstudio.com/forum/index.php?/topic/4663-noobs-guide-to-javascript-strings/ Quote Link to post Share on other sites
warriorfullights 0 Posted July 14, 2011 Report Share Posted July 14, 2011 The whole process to do this is by visiting Biks link on posts. You can see everything you need from that page. Good luck with it. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.