I have inputs with names like this
<textarea type="text" name="featured[items][58252][hpsummary]" cols="50" class="limit20_120">asdfasdfasfasfdsadfasdfaasdfasfdasfasfasdf</textarea>
and I need to renumber the items I can loop through all the inputs no problem, but I am stuck on how to re number them so that the above would then then be 1 instead of 58252
<textarea type="text" name="featured[items][1][hpsummary]" cols="50" class="limit20_120">asdfasdfasfasfdsadfasdfaasdfasfdasfasfasdf</textarea>
i can numerate just not sure how to parse it
I was thinking of just splitting the string but i'm not sure if I could use an regex so that I don't have to worry if there are more items on the end or if there is a better way