I have the following string.
**Template:**
```
**label**: test
**label2**: test
**label3**: test
```
Inside of the `````` has "labels" and with regex i'd like to select those labels:
[label1, label2, label3]
And then check another string that is similar,
**Template:**
```
**label**: Something here
**label2**: Something there.
**label3**: Something everywhere.
```
Check if the string above, contains everything that the array has. The ** aren't important, but it would be nice to check if it has ** too (but in a separate method)
What I've tried:
([/\*(*?)\*/])\w+
It selects the text but also the asterisks behind the text. *label
, and also doesn't account that I need to select everything that's between the codeblock.
How can I do this?