How to delete n characters from string with regex -


i try use regex delete last n characters string. example:

my input: azerty
expected output: azer

i want have regular expression this.

you want use regular expression (try , view explanation online):

.{2}$ 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -