Simple text file

Good morning,

can anyone help me to solve this problem on a simple text file?

I have a simple text file with a structure similare to this one:

and I have set the "translatable" text delimiters as follows (i.e. text inside " and "):

and all works correctly.

The problem is that I want to convert all instances of:

internal: "eyJyZWZlcmVuY2VfaWQiOiIxOTkiLCJtZW51dHlwZSI6Im9mZmljZS1saW51eCIsInBhdGgiOiJzb2Z0bWFrZXItb2ZmaWNlLWxpbnV4LW1lbnUifQ==!a52039fa19b4657bc2db746ec3fe95445f9f6794"

and

link: "index.php?option=com_content&view=article&id=11"

to placeholders (i.e. as "Not translatable" text)

I tried to use the Inline tags Dialog, but I didn't find a solution:

Is there a possible solution when working on plain text files?

Thank you for any help.

Regards

Claudio

Parents
  • How about using

    [!-~]{5,}\d\b

     for the inline pattern:

    Explanation:

    From what I see, the ones you want to convert have a similar pattern:

    They both contain no spaces and always end in a number.

    The explanation for the regular expression is as follows:

    • [!-~]{5,} match a single character present in the list below
      • Quantifier: {5,} Between 5 and unlimited times, as many times as possible, giving back as needed [greedy]
      • !-~ a single character in the range between ! and ~
    • \d match a digit [0-9]
    • \b assert position at a word boundary

    I chose 5 as an arbitrary length, but you could change that to something longer just in case.

Reply
  • How about using

    [!-~]{5,}\d\b

     for the inline pattern:

    Explanation:

    From what I see, the ones you want to convert have a similar pattern:

    They both contain no spaces and always end in a number.

    The explanation for the regular expression is as follows:

    • [!-~]{5,} match a single character present in the list below
      • Quantifier: {5,} Between 5 and unlimited times, as many times as possible, giving back as needed [greedy]
      • !-~ a single character in the range between ! and ~
    • \d match a digit [0-9]
    • \b assert position at a word boundary

    I chose 5 as an arbitrary length, but you could change that to something longer just in case.

Children