Jump to content
UBot Underground

How To Add Spaces After The Numbers


Recommended Posts

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 :
 

4Hours
47Minutes
23Seconds

 

My question is, how do I perform the adding of this space character? Output should be 4 Hours 47 Minutes 23 Seconds.

 

 

Thanks!

Edited by CryptoBot
Link to post
Share on other sites

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)
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...