|Subject:||Regular Expression pattern|
|Posted by:||kelm…@hotmail.com (Kelmen Wong)|
|Date:||9 Sep 2003|
I want to extract all "[XXX]" from a string, what pattern should I
[test1] = [test2]
- return array [test1] or test1, [test2] or test2
I tried \[(.*)\] , but it returned the whole "[test1] = [test2]"!
Anyone can help? Also, got any good reference sites especially with
rich example for this patterning?