I have a foreach array which contains several text strings.
foreach ($this->arrCustomFields as $field) {
echo ($field['lbl']->Name);
}
Following are the strings in above array.
abcdefg
mention
plcplc
xxxx_Models
I want to match shell style wildcard + text "*Models" and replace it with "mymodels" and commit the changes in the same foreach array.