my string (str2) = "aaaabbaacc"
i wanted to parse out the two a groups. some trials had worked according to plan , while a few , are giving me outcomes i dont understand. im hoping the members could help me out :)
problematic regexp 1 :
this gives "aa , a"
problematic regexp 2 :
this gives : Uncaught TypeError: Cannot call method 'toString' of null
no idea why the two works like the way they do. i was expecting both to give "aaaa , aa" as the result !