- A non-space string that
- starts with 'http'
- ends with 'jpg'
- and NOT contain 'mysite'
I came up with something 'almost' like that, but could not figure out how to NOT the 'mysite' part. Any hint would be appreciated!
Code: Select all
$pattern = '/http[^\s]*?mysite[^\s]*?jpg/';