Reference > Methods
urlPath(url)
Definition
String urlPath(String url)
Description
Returns the path of the URL provided.
Parameter Definition
Name |
Type |
Description |
url |
String |
URL to get path of |
Examples
| String r1 = urlPath("https://google.com/"); // r1 == /
String r2 = urlPath("https://google.com/test.png"); // r2 == /test.png
String r3 = urlPath("https://google.com/test2.html?name=james"); // r3 == /test2.html
|