DEV Community

loading...

Discussion on: Daily Challenge #305 - Remove Anchors from URLs

Collapse
boris profile image
Boris Quiroz

Python:

def remove_url_anchor(str):
    print(str.split("#")[0])
Enter fullscreen mode Exit fullscreen mode