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

109

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

Copy link to clipboard

Copied

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

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
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.

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
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.

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