Advertisement
para_bellum

Sublime text - Regex string split

Jun 17th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Original string:
  2. 2048,220258.8968,83105.6311,4,129975.337,81867.8235,32,195572.0106,81867.8235,128,207670.2032,81867.8235,256,211777.3658,81867.8235,8,167306.768,81867.8235,2,85710.7125,85710.7125,64,202652.4676,81867.8235,512,215199.6283,81867.8235,1024,217834.7023,82728.2245,4096,222309.4948,82247.3445,
  3.  
  4. Find:
  5. ([0-9]+\.?(\d+)?,){3}
  6. Replace with:
  7. ${0}\n
  8.  
  9. Result:
  10. 2048,220258.8968,83105.6311,
  11. 4,129975.337,81867.8235,
  12. 32,195572.0106,81867.8235,
  13. 128,207670.2032,81867.8235,
  14. 256,211777.3658,81867.8235,
  15. 8,167306.768,81867.8235,
  16. 2,85710.7125,85710.7125,
  17. 64,202652.4676,81867.8235,
  18. 512,215199.6283,81867.8235,
  19. 1024,217834.7023,82728.2245,
  20. 4096,222309.4948,82247.3445,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement