Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Interesting. Can you explain the logic in the replace function? Commented Jul 5, 2018 at 17:08
  • 2
    This will not work correctly for the text I have a %11, a %21, and a %31, once we need the final result I have a dog1, a cat1, and a goat1. Commented Apr 30, 2021 at 16:36
  • This is awesome. You just have to cut the -1 to get it working. Cool. It meets my needs 100%. Commented May 29, 2023 at 21:52