Hello HF,
So i am tying to match a pattern in a string.And extract a word for the string.
For example:
In a huge string I want to search for, "admin-* admin-1"
I want to search for this pattern in a huge array and the * can be anything.And if the pattern matches.I want to get the value *. As in if the string was "admin-lotty admin-1" I want to get the word "lotty".Can somebody please help me with it and show me how to do it please.
Best Regards,
geekmorpheus403
So i am tying to match a pattern in a string.And extract a word for the string.
For example:
In a huge string I want to search for, "admin-* admin-1"
I want to search for this pattern in a huge array and the * can be anything.And if the pattern matches.I want to get the value *. As in if the string was "admin-lotty admin-1" I want to get the word "lotty".Can somebody please help me with it and show me how to do it please.
Best Regards,
geekmorpheus403



![[Image: 4bj39qK.png]](https://i.imgur.com/4bj39qK.png)