Essayez la sous-chaîne en ligne JavaScript

var str = "Hello world!";
var res = str.substring(1, 4); //ell
Sleepy Swiftlet