how to delete alle charcters up to specifc character in javascript code example Example: js remove after character url.split('?')[0]