0
what is the string replace method
New Here
,
/t5/acrobat-sdk-discussions/what-is-the-string-replace-method/td-p/10376868
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-sdk-discussions/what-is-the-string-replace-method/m-p/10376869#M15288
Feb 02, 2019
Feb 02, 2019
Copy link to clipboard
Copied
It's the same as any other JS implementation: JavaScript String replace() Method
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
DigitalDon15
AUTHOR
New Here
,
LATEST
/t5/acrobat-sdk-discussions/what-is-the-string-replace-method/m-p/10376871#M15290
Feb 03, 2019
Feb 03, 2019
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/acrobat-sdk-discussions/what-is-the-string-replace-method/m-p/10376870#M15289
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

