Posts by José Augusto Batista Neto • 21 points
1 post
-
2
votes2
answers317
viewsA: Catch string between bars
You can also do by regular expression. var texto = /\/([\w\d]+)\/[\w.]+$/gi.exec("https://i.ytimg.com/vi/heDA6Yu7hsc/img.jpg"); console.log(texto[1]);…
javascriptanswered José Augusto Batista Neto 21