• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

what is the string replace method

New Here ,
Feb 02, 2019 Feb 02, 2019

Copy link to clipboard

Copied

I'm new to Adobe's version of javascript.  I can't seem to find, in all the web pages of documentation so far, a simple explanation of Adobe's version of replace for Adobe Acrobat Pro 2017.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

300

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
community guidelines
Community Expert ,
Feb 02, 2019 Feb 02, 2019

Copy link to clipboard

Copied

It's the same as any other JS implementation: JavaScript String replace() Method

Votes

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
community guidelines
New Here ,
Feb 03, 2019 Feb 03, 2019

Copy link to clipboard

Copied

LATEST

Thanks.  Now that I know I have the correct method - thanks for that link - I was able to discover the real problem was there was no definition for replace with an array as the target object.  As soon as I isolated the string element I was able to modify the string.

Votes

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
community guidelines
LEGEND ,
Feb 02, 2019 Feb 02, 2019

Copy link to clipboard

Copied

If on the other hand you're looking for a method to replace the strings ON THE PAGE, there isn't one.

Votes

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
community guidelines