url.replace(/\/?offset=\d+/g, ''); This regular search is looking for the string? Offset = any number, but do I need to make another sign? was optional (that is, it may or may not be). I tried it like this
url.replace(/\/?\*offset=\d+/g, ''); But it did not work: (How to write such a condition correctly?
urlmod - Alexey Ten