I'm looking for preg_match_all pattern to find all URL on a page that don't have trailing slash.
For example: if I have
a href="/testing/abc/">end with slash
a href="/testing/test/mnl">no ending slash
The result would be #2. Solution is posted at find pattern for url with no ending slash
I have tried to modify the provided pattern to exclude urls that have 'images' or '.pdf' but no luck yet.
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…