Why does the alert return only 13 cat_id, although there should be 14 uafyukuk?
var list = '[13, "cat_id"][14, "уафйукук"]'; var tcategories_array_list_match = list.match(/\[(\d+), "(.*?)"\]/i); alert(tcategories_array_list_match); Why does the alert return only 13 cat_id, although there should be 14 uafyukuk?
var list = '[13, "cat_id"][14, "уафйукук"]'; var tcategories_array_list_match = list.match(/\[(\d+), "(.*?)"\]/i); alert(tcategories_array_list_match); Source: https://ru.stackoverflow.com/questions/254821/
All Articles