how does the front end replace invisible characters with regularities
for example:
const str = "11111683"
console.log(str.length) // 9
there is an invisible character between 8 and 3, which can be replaced by str.replaceAll ("\\ p {Cf}","")
in java, but not the str.replace
in the front end. Ask the boss to give an available regular
reference link: