Try out below code

    store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
    store | 1 | delimiter
    store | javascript{storedVars['URL'].split('/-|')[storedVars['delimiter']]} | result
    echo  | ${result}

Result will be  - 845290