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

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -