Working with AngularJS and facing a requirement to extract a specific text from a scope value
.
Here's my scope value:
$scope.myLogMsg = '1111 order is placed by Sukumar Ms(User)'; //output: by Sukumar Ms(User)
Desired output: by Sukumar Ms(User)
Need to exclude "1111 order is placed" from the string and extract "by Sukumar Ms(User)"
Attempted using JavaScript split method without success. Any suggestions?