In this last part of your regexp the dot-plus will match all up to the end of line. The remaining '.jpg' part will not be found and therefore the regexp never matches./(.+)+\.jpg
The solution is to make the dot-plus part of the regexp less greedy, change the part above to:
/(.+?)\.jpg
In reply to Re^2: very quick link regex
by varian
in thread very quick link regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |