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.
Angel Llacuna Spain Local time: 14:10 English to Spanish
May 23, 2018
How can I specify a regular expression on Texpad that searches for the second occurrence of a tab character on each row of a plain text file ?
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Endre Both Germany Local time: 14:10 English to German
Test this
May 23, 2018
Never heard of Texpad before and didn't find information on the regex flavour it uses, but you could try something like this:
^[^\t]*\t[^\t]*\t
This is predicated on the regex engine representing tabs as \t and allowing for excluding character ranges, e.g. [^\t] meaning any character except tab.
Also, it matches the entire row up to the second tab; if you need only the tab matched, it will get a tad more complicated as you need to look into whether the rege... See more
Never heard of Texpad before and didn't find information on the regex flavour it uses, but you could try something like this:
^[^\t]*\t[^\t]*\t
This is predicated on the regex engine representing tabs as \t and allowing for excluding character ranges, e.g. [^\t] meaning any character except tab.
Also, it matches the entire row up to the second tab; if you need only the tab matched, it will get a tad more complicated as you need to look into whether the regex engine supports lookbehind (= checking the environment to the left of a potential match, in this case the tab). ▲ Collapse
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Olaf Schutze (X) Vietnam English to German + ...
try
Feb 18, 2019
Angel Llacuna wrote:
How can I specify a regular expression on Texpad that searches for the second occurrence of a tab character on each row of a plain text file ?
^[^\t]*(\t{1}).*$ // the first ^[^\t]*(\t{2}).*$ //the second
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
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.
Exclusive discount for ProZ.com users!
Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value