Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

-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 - 9 years ago