SyntaxFix
Write A Post
Hire A Developer
Questions
This regexp works for me:
form\[([^']*?)\]
example:
form[company_details][0][name] form[company_details][0][common_names][1][title]
output:
Match 1 1. company_details Match 2 1. company_details
Tested on http://rubular.com/