Retrieving part of a string using jQuery / JavaScript
- by ILMV
I know how I would achieve this using PHP, but with jQuery / JavaScript I'm not sure how to, here's the string I'm dealing with (It's the name attribute from a input element):
Field[0][some_random_text]
I want to retrieve the value some_random_text and slap it in a variable, I guess I would usually use regex to accomplish this task but not sure…