I wont to remove this,
I tried this How do I match any character across multiple lines in a regular expression?. but didn't work.
<span> powered by </span>
<a
href="http://keystonejs.com"
target="_blank"
className={css(classes.link)}
tabIndex="-1"
>
KeystoneJS
</a>
const string = `
tabIndex="-1"
className={css(classes.link)}
>
{brand + (appversion ? (' ' + appversion) : '')}
</a>
<span> powered by </span>
<a
href="http://keystonejs.com"
target="_blank"
className={css(classes.link)}
tabIndex="-1"
>
KeystoneJS
</a>
<span> version {version}.</span>
{this.renderUser()}
`;
console.log(string.match(/<span>\spowered(.*)<\/a>/gmi));