Regex for hyperlinks in SDL Studio, json files
Thread poster: Claudia Infantes Villafranca

Claudia Infantes Villafranca  Identity Verified
Local time: 23:35
English to Spanish
+ ...
Dec 1, 2016

Hi all,

I am working with json files in Studio 2015, and given the amount of HTML codes etc found inside them I am defining tag definition rules in order to avoide them or define them as placeholders, etc. Generally speaking I am not having much problem with that.

However, when dealing with hyperlinks inside the files, I cannot handle them appropriately and no matter which Regex I use, Studio ignores my rules and extract the content of the Hyperlink resulting in a very ugly file and I guess resulting in a misguiding analysis, since it might take into account the content of the hyperlink.

The type of links are as follows:

Ich akzeptiere die "a class=\"PFX-link\" href=\"\" target=\"_blank\"" Teilnahmebedingungen für den XX-Coach""/a"

(there should be angular brackets at the beginning and end of the hyperlink, however if I use it, it is not properly shown in the body of the message)

In order to define the tag pair of the hyperlink I am using this regex tag pair:

"a class=.*\""

(it should beging and end with angular brackets)

"\/.*" or simply "/a"

(they should beging and end with angular brackets)

When I use this Regex to search for any hyperlink in a Notepad, it definitely searchs the first part of the hyperlink; however, when setting this rule in Studio it keeps on extracting the content of the hyperlink ignoring my order to handle it as Tag pair.

I guess I am doing something wrong with it, but I certainly don't know what else to do.
Below the settings I am using:

Tag type > Tag Pair
Regular Expression
Start Tag: a class=.*\"
End Tag: \/.*
Tag Properties
Translate> Translatable
Advanced> Segmentation hint> Include

Is there any other tag definition rule I can use in order to avoid the hyperlinks appearing in Studio when dealing with json files?

Thanks a lot in advance!

[Editado a las 2016-12-01 11:49 GMT]

Direct link Reply with quote

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

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

Regex for hyperlinks in SDL Studio, json files

Advanced search

BaccS – Business Accounting Software
Modern desktop project management for freelance translators

BaccS makes it easy for translators to manage their projects, schedule tasks, create invoices, and view highly customizable reports. User-friendly, integration, community-driven development – a few reasons BaccS is trusted by translators!

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »

  • All of
  • Term search
  • Jobs
  • Forums
  • Multiple search