Regex to replace commas to points in gedit
✓ Published0🌍 Public
LLuisSevillano
Last edited Oct 30, 2019
Created on Oct 25, 2019
This example demonstrates how to use regular expressions in the gedit text editor to replace decimal commas with decimal points in a CSV file. The data, containing numeric values with commas as decimal separators, is shown first, followed by the two-part regex workflow. The find pattern `(\d{1,2}),(\d{1,2})` captures digit groups around a comma, while the replacement string `\1.\2` reconstructs the number with a period. The process relies on gedit’s built-in find-and-replace functionality, which supports regex syntax for pattern matching.
AI-generated description