This matches at least one of (anything not a slash) followed by end of the string:
[^/]+$
Notes:
- No parens because it doesn't need any groups - result goes into group 0 (the match itself).
- Uses
+ (instead of *) so that if the last character is a slash it fails to match (rather than matching empty string).
But, most likely a faster and simpler solution is to use your language's built-in string list processing functionality - i.e. ListLast( Text , '/' ) or equivalent function.
For PHP, the closest function is strrchr which works like this:
strrchr( Text , '/' )
That will include the / in the result though.