Regular Expression to collect everything after the last /

前端 未结 8 1883
北荒
北荒 2020-11-28 05:16

I\'m new at regular expressions and wonder how to phrase one that collects everything after the last /.

I\'m extracting an ID used by Google\'s GData.

8条回答
  •  忘掉有多难
    2020-11-28 05:54

    based on @Mark Rushakoff's answer the best solution for different cases:

    
    
    1. Regular Expression to collect everything after the last /
    2. How to get file name from full path with PHP?

提交回复
热议问题