About
Pricing
Community
Teams
Start Free Trial
Log in
Joe Howard
asked on
1/5/2016
regex needed
What regex would capture the file name not including
_[S|M|L|thumb].jpg
in all the following examples:
https://d1yl1kh78jj1rr.cloudfront.net/thumbnail/AS6_1683-77_S.jpg
https://d1yl1kh78jj1rr.cloudfront.net/preview/AS6_1683-77_M.jpg
https://d1yl1kh78jj1rr.cloudfront.net/content/AS6_1683-77.jpg?response-content-disposition
AS6_1683-77
https://d1yl1kh78jj1rr.cloudfront.net/thumbnail/AS6_3900-136_thumb.jpg
https://d1yl1kh78jj1rr.cloudfront.net/preview/AS6_3900-136_M.jpg
https://d1yl1kh78jj1rr.cloudfront.net/content/AS6_3900-136.jpg?response-content-disposition
AS6_3900-136
https://d1yl1kh78jj1rr.cloudfront.net/thumbnail/hand-drawn-illustration-of-cocktail-vector-collection_X1EVoU_S.jpg
https://d1yl1kh78jj1rr.cloudfront.net/preview/hand-drawn-illustration-of-cocktail-vector-collection_X1EVoU_M.jpg
https://d1yl1kh78jj1rr.cloudfront.net/content/hand-drawn-illustration-of-cocktail-vector-collection_X1EVoU_L.jpg?response-content-disposition
hand-drawn-illustration-of
-cocktail-
vector-col
lection_X1
EVoU
Note: it should be the same regex for all of them.
Regular Expressions
JavaScript
18
2
Last Comment
zzynx
8/22/2022 - Mon