views:

41

answers:

1

Extract the number after #/ from my string: abcdefg#/123.

+2  A: 

This assumes the match will succeed: 'abcdefg#/123'.match(/#\/(\d+)/)[1]

Marcelo Cantos