Hello folks.
Thanks for ALL of your help!
After much digesting and studying regular expressions to learn it based on the feedback I received from this thread, I revisited the existing regex I was trying to use and in conjunction with the WONDERFUL info you've provided, here is the conclusion I've reached thus far:
...to use Weedpacket's '/[ZZTop=(.?)]/' with a twist of bradgrafelman to exchange + for and NogDog's intoduction to word boundary code and his suggestion [for me] to explain into words and output example as to what I want the preg_match_all or other to do.
I therefore took the time necessary to really understand alot more, not all though, and I believe I now know more on how to apply regexs, and for that I am TRULY GRATEFUL!
I'm sure that as I encounter more complex situations, I may have a question or two for this forum. 🙂
But for now, I have just one last (?) question...:
To prevent spaces, why isn't the code:
'/[ZZTop=(.+?\S)]/' or '/[ZZTop=(\S.+?)]/'
and how to prevent any individual character, e.g. maybe a ' or $ or ...?
Thanks again and thanks in advance.