Is there a way to grab strings that match patterns --*--
and ++*++
(two seperate queries) where *
is a wildcard and --
, ++
, are criteria to meet. I'd like to write matches within variable fully, like --daniweb.com--
and ++this just an example++
.
preg_match()
provides solution on alphanumerical identities. And there's been about 3 pages which focus grabbing all special characters, however, I need to focus these two. As I need to replace these two of these in future (after I find out the variables within --
or ++
).