I am trying to find out the numbers (only numbers should match) in a string. The numbers to be identified are only those which are surrounded by '@'
So in string '@432432@Hi@534543534@'
only 432432
and 534543534
should be retrieved.
I tried a regex but it uses look behind which is not supported in javascript (esp. in firefox). Thus looking for a compatible pattern.
The one I used is like the following:-
var str = '@432432@Hi@534543534@';
var list = str.match(/(?<=@)(\d{1,100})(?=@)/g)
//list is ['432432', '534543534']
Thanks in advance.