Hit enter to search or ESC to close
Dean Ha
  • About
  • Portfolio
  • Photography
  • Blog
  • Contact

Crafting Code & Visuals

Tutourial & Tips

How to remove all white spaces from a string

var copyText = document.getElementById("reg"); copyText.value.replace(/ /g,'')  
Dean Ha
Dean Ha19th August 2021
Tutourial & Tips

Find all string within square brackets [string] – Regex

Regex Pattern: var regex = '/\/g';   Link: https://www.regextester.com/97589
dha
dha20th December 2018

Categories

  • #100DaysOfCode
  • Blog
  • How to
  • Inspirations
  • Resources
  • Technology
  • Tutourial & Tips
  • W.I.P

© 2025 Dean Ha. All Rights Reserved

  • About
  • Portfolio
  • Photography
  • Blog
  • Contact