javascript remove prefix from string code example Example: remove prefix js str.replace(/^myPrefix/,"");