166
rated 0 times
[
170]
[
4]
/ answers: 1 / hits: 144396
/ 12 Years ago, sat, july 21, 2012, 12:00:00
I have this string:
My name is <b>Bob</b>, I'm <b>20</b> years old, I like <b>programming</b>.
I'd like to get the text between b
tags to an array, that is:
['Bob', '20', 'programming']
I tried this /<b>(.*?)</b>/.exec(str)
but it will only get the first text.
More From » regex