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
Post a Comment