-
Regular Expressions to remove Resource out of String
I have a string like so:
/tutorialThumbs/image.png
How would I get
/tutorialThumbs/
and strip off anything that is like 'image.png or image.jpg etc..'
Thanks for any help
-
¬.¬ shoooo...
Logic without the fatal effects.
All code snippets are licensed under WTFPL.
-
-
Ok, now how would I get the image.png in a string?
example
/tutorialThumbs/image.png
into
image.png
?
Thanks
-
¬.¬ shoooo...
Logic without the fatal effects.
All code snippets are licensed under WTFPL.
-
Awesome, thanks a million
-
@php.net
You could also use the pathinfo with the PATHINFO_* constants.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks