Extract the number after #/
from my string: abcdefg#/123
.
views:
41answers:
1
+2
A:
This assumes the match will succeed: 'abcdefg#/123'.match(/#\/(\d+)/)[1]
Marcelo Cantos
2010-04-04 04:48:15