Site icon Hip-Hop Website Design and Development

Need to Echo A Url path to show on a wordpress page

I need to extract a url path number to a shortcode… Here is an example below…

https://example.com/page/c/1

I need the number “1” to be shown with a shortcode…

[url_path_number]