Highlighted

Regular expression for uppercasing not working

Advocate ,
Mar 29, 2018

Copy link to clipboard

Copied

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

Views

529

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Regular expression for uppercasing not working

Advocate ,
Mar 29, 2018

Copy link to clipboard

Copied

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

Views

530

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 29, 2018 0
Enthusiast ,
Mar 29, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 29, 2018 1
Adobe Community Professional ,
Feb 26, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 26, 2019 0
Advocate ,
Feb 26, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 26, 2019 0
Adobe Community Professional ,
Feb 26, 2019

Copy link to clipboard

Copied

Some things are supported.

E.g. to replace regular spaces with non-breaking spaces before units.

Search (\d) mm

Replace with $1\ mm

With the $ notation you can also search and replace several groups.

But yes, there are a few regular expression features which do not work yet.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 26, 2019 0
Participant ,
Mar 01, 2019

Copy link to clipboard

Copied

Just wondering: Is there a reliable reference describing what is and is not supported in FM regex replaces?

For that matter, is there a library anywhere of tested and verified FM regex search/replace pairs? Or do regex newbies like me just have to roll our own?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 01, 2019 0
Adobe Employee ,
Mar 02, 2019

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 02, 2019 0