Need regex to search font awesome icon name from string.
What i tried so far:
function myFunction() {
var str = '<i class="fa fa-edit"></i>';
var res = str.match(/'fa-'*/);
return res;
}
My function should return "fa-edit" as icon name
What should be my regex to find name ??