Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-04-28 16:58
Flavor·JavaScript

/
^([\d]+)[.]+
/
g
Open regex in editor

Description

num = num
            .replace(reg1, '')
            .replace(reg2, '')
            .replace(reg3, '$1_')
            .replace('.', '')
            .replace('_', '.');
Submitted by anonymous