How to remove all white spaces from a string Tutourial & Tips How to remove all white spaces from a string var copyText = document.getElementById("reg"); copyText.value.replace(/ /g,'') Dean Ha19th August 2021
Find all string within square brackets [string] – Regex Tutourial & Tips Find all string within square brackets [string] – Regex Regex Pattern: var regex = '/\/g'; Link: https://www.regextester.com/97589dha20th December 2018