ebooklub
Hall of Fame
Points: 3905
More actions
December 29, 2015 at 3:49 pm
#310569
"this transaction will cost $600" -match "\`$ \d{1,3}"
I want matches[0]
$600
what am I missing ?
bruce 1565
SSCrazy
Points: 2574
December 30, 2015 at 2:27 pm
#1848846
The double quotes alter $600. Either use single quotes or escape the $ sign.
"this transaction will cost `$600" -match "\$\d{3}"
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply