I have spent about a couple of hours trying to read the pcre regex syntax on the php.net manual but I can't for the love of god grasp the concept of it. If anyone can help me it would be greatly appreciated.
I'm trying to split some strings into an array and I dont THINK that explode() would work since I wanna split this $str = '[str1][str2][str3]'
into Array([0]=>'str1', [1]=>'str2', [2]=>'str3')
I could use preg_split() or preg_match() and use the $match variable but I just don't know how to set the pattern that get the strings inside the [].
please help >_<