Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- regex expression to preg_replace data:image(anything)"
- data:image(any number of characters except of doublequotes)"
- $string = preg_replace('/data:image[^"]*"$/', 'data:image"', $string);
- $string = preg_replace('/data:image([^"]*)"$/', '1', $string);
Add Comment
Please, Sign In to add comment