Skip to main content
K.Daube
Community Expert
Community Expert
Mar 29, 2018 10:28 AM UTC
Question

Regular expression for uppercasing not working

Dear all!

I have no success in changing the case of found items with Find/Replace using Regular expression in FrameMaker 14.0.3.500.

I want change lower case characters after n-dash followed by blank b< the upper case equivalent:

Assume no change in maker.ini, hence RegularExpressionSyntax=Perl

Find:      – ([a-z])

Replace: – \U$1 or – \u$1 or – \p{Lu}$1

Consider case: on or off

=> None of the replacements does the job!

Then I have tried various things with RegularExpressionSyntax=egrep  or grep.

No success either.

My syntax reference is Replacement Strings Reference: Context and Case Conversion

Bug? Wrong syntax?

Klaus Daube

    This topic is closed to new replies. Start a new post to keep the conversation going.

    7 replies

    Community Expert
    Sep 10, 2021 8:36 AM UTC

    Pitty. Still not working (FM 16.0.2.916).

    I created a bug report in the Adobe Tracker, if someone wants to vote for this issue:

    https://tracker.adobe.com/#/view/FRMAKER-10768

     

    Translate
    Ian Proudfoot
    Legend
    Mar 29, 2018 3:37 PM UTC

    Klaus,

    It looks as if FrameMaker is not working correctly with escape sequences in the Replace field. For example, the normal $1 for the first capturing group works while the alternative \1 does not.

    This means that the example in the FM help document does not work either...

    I think this must be a bug.

    Ian

    Translate
    Community Expert
    Feb 26, 2019 1:01 PM UTC

    Hi Klaus,

    I just have the same problem with FM 2019.0.2.

    Did you already find a way around this?

    Or did you enter this in the Adobe Bug Tracker so that I can vote for this issue?

    Best regards

    Winfried

    Translate
    K.Daube
    Community Expert
    K.DaubeCommunity ExpertAuthor
    Community Expert
    Feb 26, 2019 3:09 PM UTC

    Unfortuantely FM does not support regex in the Replace field! We have complained a lot about this, but yet now there is no light in the tunnel.

    Translate