use of regular expressions on Textpad
Thread poster: Angel Llacuna

Angel Llacuna  Identity Verified
Spain
Local time: 22:13
English to Spanish
May 23

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 ?

 

Endre Both  Identity Verified
Germany
Local time: 22:13
Member (2002)
English to German
Test this May 23

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).


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

use of regular expressions on Textpad

Advanced search






Protemos translation business management system
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.

More info »
SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search