Small regex exclude problem

pennya

New Member
Guys i have a small and frankly stupid problem, so here it is...I have a text that could possibly include words,numbers etc. All i want is to match the numbers inside brackets, but withtout matching them like this:\[quote\] Lorem 43 ipsum dolor 1 sit amet (355) some other text.\[/quote\]All i want to match is the number 355, but since there are numbers without brackets, i get to this:\[code\]\(\b\d+\b\) - 1st variant\(.+?\) - 2nd variant\[/code\]presumably i get (355), but my php script is already under heavy load, matching to remove the brackets is not a n option.
 
Back
Top