Yngvarr

Generation

regexMon, 20 Feb 2023

оставить только точки и цифры

const str = 'some string'; const result = str.replace(/[^0-9.]+/g, '');

Questions about programming?Chat with your personal AI assistant