
September 4th, 2012, 07:23 PM
|
|
Registered User
|
|
Join Date: Jul 2006
Posts: 22
Time spent in forums: 2 h 57 m 25 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by requinix To escape the []s all you need is a backslash.
|
I see now - just a matter of being pointed in the right direction.
Setting the pattern is enough. I was trying to work inside a range (or something  )
Code:
preg_match("#\[tabstyle (\d+) (\d+) (\w){6}\]#", "$string", $matches)
where your 'something' will now find 6 character color hex.
PS.... on further testing I see that matches[3] is only the last character of the 6. I am searching for the (?) that will give me ALL 6. Any thoughts?
Thank you very much.
|