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