Reply To: GREP – Removing the trailing forward slash from URLs

Home Page / Forums / General InDesign Topics (CLOSED) / GREP – Removing the trailing forward slash from URLs / Reply To: GREP – Removing the trailing forward slash from URLs

#96374

This is a bit tricky, cause otherwise slashes are removed in the middle, if you start a GREP a second time. Did you realize, that your GREP will find content between two URLs, cause the “*” is greedy?

Try this one:
((https?:|www\.).+)/(?!\w)

This may not work in every case.

Kai

This article was last modified on July 26, 2017

Comments (0)

Loading comments...