CryptoBot 0 Posted August 13, 2019 Report Share Posted August 13, 2019 (edited) Hi All, I have this text scraped from a webpage "4Hours47Minutes23Seconds", and I wanted to put a space at the end of each number. So far I am only able to group them like this (\d{1,2}.{1,5})+(\d{1,2}.{1,7})+(\d{1,2}.{1,7}). Which outputs : 4Hours47Minutes23Seconds My question is, how do I perform the adding of this space character? Output should be 4 Hours 47 Minutes 23 Seconds. Thanks! Edited August 13, 2019 by CryptoBot Quote Link to post Share on other sites
pash 504 Posted August 13, 2019 Report Share Posted August 13, 2019 try alert($replace("4Hours","Hours"," Hours")) Quote Link to post Share on other sites
bestmacros 60 Posted August 13, 2019 Report Share Posted August 13, 2019 set(#n,"4Hours47Minutes23Seconds","Global") set(#n,$replace(#n,"Hours"," Hours "),"Global") set(#n,$replace(#n,"Minutes"," Minutes "),"Global") set(#n,$replace(#n,"Seconds"," Seconds"),"Global") alert(#n) 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.