Can someone help me retrieve a specific value?
name // apple
index // 1
LastName //Surname
I am struggling with my current method due to a single condition '.'
value = '#[pill(apple.1.Surname)]'
const [var1, var2, var3] = value.split('.')
The regular expression is /#\[pill\((.*?)\)\]/gi