How do I get given value?
name // google
index // 0
LastName //Last Name
My approach is not working because I have a singular condition '.'
value = '#[pill(google.0.LastName)]'
const [name, index, name] = value.split('.')
Regex is /#\[pill\((.*?)\)\]/gi
()before splitting on a.