I need to get the GUID inside [ ] parenthesis. Here is a sample texts:
AccommPropertySearchModel.AccommPropertySearchRooms[6a2e6a9c-3533-4c43-8aa4-0b1efd23ba04].ADTCount
I need to do this with JavaScript using Regular Expressions but so far I am failing. Any idea how I can retrieve this value?
This should work:
And a version with no regex:
I would use the regex, but it may be more convenient for you to use the second version.