NRWAL.utilities.utilities.find_parens
- find_parens(s)[source]
Find matching parenthesis in a string
https://stackoverflow.com/questions/29991917/ indices-of-matching-parentheses-in-python
- Parameters:
s (str) – String containing parentheses.
- Returns:
indices (list) – List of matching parentheses indices e.g. [[i_start1, i_end1], [i_start2, i_end2]]