Regex tagger for straight bracket
Thread poster: Omer Shani

Omer Shani  Identity Verified
Israel
Local time: 19:52
Member (2012)
English to Hebrew
+ ...
Feb 13, 2020

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: 20:52
English to Russian
+ ...
| (pipe) sign is used as alternator in regexes in MQ Feb 13, 2020

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: 20:52
English to Russian
If there is no space between the pipe signs, Feb 13, 2020

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: 20:52
English to Russian
Feb 14, 2020



[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 »
TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »



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