I need to delete the last 8 characters from a URL being generated. The URL is different in length every time so you cannot just do a character limit. It does always end with the same 8 characters.
I need the “&updates” on the end of the URL to be deleted or segmented automatically and cannot figure out how to do that. The final URL result should be:
Any ideas? Thank you kindly :)
Best answer by PaulKortmanView original
Add a Formatter by Zapier Action step, choose Text and Extract Pattern then fill it in like so:
The key or difficult part is the Pattern using Python Regular Expressions. I tested this out and it seems to work:
Those characters are explained:
So it reads: Match/find everything up until the last character only excluding the “&updates” at the end of the string.
Test it out and see if it works for you.
AMAZING! Thank you so much
@PaulKortman this worked perfectly. You just saved me hours of frustration Paul, you’re the man
Happy to help! Enjoy!