Regular Expressions 101

Community Patterns

Replace comma separated decimals (comma instead of point)

-1

Regular Expression
ECMAScript (JavaScript)

/
([\,]?)(.*?),(.*?),(.*?),([^,\n]+)
/
g

Description

Matches, line by line, a comma separated list of decimal numbers with comma as decimal character (Spanish way)

Produces a list of comma separated pairs (space separated innermost) of decimal numbers with point as decimal character (English way)

Submitted by Bruno A. Castro - 8 years ago