Regex tagger for straight bracket
Thread poster: Omer Shani

Omer Shani  Identity Verified
Israel
Local time: 07:24
Member (2012)
Feb 13

Hi,

I'm trying to figure out the right regex tagger for segments with straight bracket, but every option I try, it turn out too greedy

An example for a segment:

Please use our portal |portallink| and this unique code |code|

Your assistance will be highly appreciated

Omer


 

mikhailo
Local time: 08:24
English to Russian
+ ...
| (pipe) sign is used as alternator in regexes in MQ Feb 13

Omer Shani wrote:

Hi,

I'm trying to figure out the right regex tagger for segments with straight bracket, but every option I try, it turn out too greedy

An example for a segment:

Please use our portal |portallink| and this unique code |code|

Your assistance will be highly appreciated

Omer


| (pipe) sign is used as alternator in regexes in MQ. So you should backslash it like \| to find «|» as simple sign.


 

Stepan Konev  Identity Verified
Russian Federation
Local time: 08:24
English to Russian
If there is no space between the pipe signs, Feb 13

use \|(\w+)\|

If there is/are space(s) anywhere between the pipe signs, use [?>=\|][^|]+[?=\|]

[Edited at 2020-02-14 00:20 GMT]


 

Stepan Konev  Identity Verified
Russian Federation
Local time: 08:24
English to Russian
Feb 14



[Edited at 2020-02-14 00:14 GMT]


 


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


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

Regex tagger for straight bracket

Advanced search






PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

More info »
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, helps experienced users make the most of the powerful features.

More info »



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