Finding index inside a Javascript regular expression match.
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-06-09T10:16:19Z
Indexed on
2010/06/09
10:22 UTC
Read the original article
Hit count: 134
JavaScript
|regex
i had string like this in javascript
var str = "This is my test string is Ingrédients";
the substring "Ingrédients"
can be also as "Ingredients"
how to get the index of substring "Ingrédients"
from the above string
by applying regular expression ( Ingr[ée]dients
)
© Stack Overflow or respective owner