Greeting,
I want to extract all "[XXX]" from a string, what pattern should I
used?
eg.
[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?
I want to extract all "[XXX]" from a string, what pattern should I
used?
eg.
[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?
Comment