With the assumption that the two versions are the same length and have no leading zeros, yes. I'd probably recommend .replaceAll('.', '') over split('.').join('').
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
With the assumption that the two versions are the same length and have no leading zeros, yes. I'd probably recommend
.replaceAll('.', '')
oversplit('.').join('')
.