JSFiddle - React, Tailwind, and code Playground

JavaScript

var str = "/ucwa/oauth/v1/applications/101507538841/people/[email protected]/presence";
var n = str.match(/[^\/]*@[^\/]*/);
alert(n);