How can I use Regex to identify a placeable?

Hi, 

I realise - too late - that in a huge file with alphanumeric strings recognised as placeables, that strings needing translation have incorrectly autopropagated without being translated.

For example:

ALFA-1-ANTITRIPSINA

PROTEINASA-3

(to name but a few).

I'd like to filter by

1. All segments containing a placeable (plus any other content).

2. All segments containing a placeable only.

Can anyone suggest a Regex string that would catch Studio placeables that I'd be able to use in the Advanced Display Filter and/or in QA checker>Regular expressions?

I've got as far as ([A-Z]|\d)(-|–|_|\.)([A-Z]|\d) but it's not specific enough (e.g., it also catches \d-\d).

Many thanks,

Emma

Parents Reply
  • Unknown said:


    \b(?=\S*[a-zA-Z])(?=\S*[0-9])\b([^\s.]*)

    This is excellent, Paul! Thank you!

    It works almost perfectly in the ribbon filter and with Ctrl+F.

    (It includes forward slashes (see red rectangles) whereas Studio doesn't (see blue line): 

    The Advanced Display Filter picks up the same, but also segments with tag content, so:

    This is an important difference, because at the moment I can't use the Advanced Display Filter to combine with other filters. 

    But still, this is quite workable now. Many thanks for your help.

     

    P.S. One last request. How could I filter for segments with alphanumeric strings and nothing else? (e.g. segment 125 above)

Children
No Data