This site uses cookies.
Some of these cookies are essential to the operation of the site,
while others help to improve your experience by providing insights into how the site is being used.
For more information, please see the ProZ.com privacy policy.
I am currently studying the use of regular expressions and their use, but I am stuck on the "replace" part of the process. Can I also use regular expressions to replace whatever strings i have found?
For example, changing all the commas in numbers for periods or non-breaking spaces:
-253,000 to 253.000 or 253 000
I can fin the occurrences of these numbers with the following regular expression:
I am currently studying the use of regular expressions and their use, but I am stuck on the "replace" part of the process. Can I also use regular expressions to replace whatever strings i have found?
For example, changing all the commas in numbers for periods or non-breaking spaces:
-253,000 to 253.000 or 253 000
I can fin the occurrences of these numbers with the following regular expression:
([0-9]{3}),([0-9]{3}) - This regex would theoretically find all numbers from 100,000 to 999,999
The problema I have is that when I try to replace it with, for example, ([0-9]{3}).([0-9]{3}) (replacing the comma with a period or a space), the numbers get replaced by the actual regex and not for what it represents.
Problem: 253,000 gets replaced by ([0-9]{3}).([0-9]{3}) and not 253.000.
Is it actually possible to do this or is it just to find strings of text? Am i doing anything wrong?
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!
The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.
Create customer quotes and invoices from within Trados Studio
Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.