Regex for this?

These two are is probably fairly simple, but I could only get a regex for parts of what I want.

I'm looking for something handles the chapter numbers and the section numbers.

For example "10-18" or "5-140". Up to digits on the left and up to three on the right.

Next are things like "6.", "6.2", "5.11.4". I can't get this one without making winding up with separate expressions. Something like "5.11.4" ends up giving me 3 or four different candidates. 

Any help would be appreciated.

 

Best regards,
Keenan

Parents Reply
  • Segments containing only numbers and non-translatables can be easily filtered out, copied source to target and confirmed. This is much faster than any other action done on those segments. The regex for filtering is ^[\d\W]*$

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

Children