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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -