use of regular expressions on Textpad
Autor de la hebra: Angel Llacuna

Angel Llacuna  Identity Verified
España
Local time: 00:31
inglés al español
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 ?

 

Endre Both  Identity Verified
Alemania
Local time: 00:31
Miembro 2002
inglés al alemán
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


 

Olaf Schutze (X)  Identity Verified
Vietnam
inglés al alemán
+ ...
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


 


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






SDL Trados Studio 2019 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2019 has evolved to bring translators a brand new experience. Designed with user experience at its core, Studio 2019 transforms how new users get up and running and helps experienced users make the most of the powerful features.

More info »
SDL MultiTerm 2019
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2019 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2019 you can automatically create term lists from your existing documentation to save time.

More info »



Forums
  • All of ProZ.com
  • Búsqueda de términos
  • Trabajos
  • Foros
  • Multiple search