JSでこの特定のphppregreplaceに相当するものはありますか?
preg_replace('/[\n]{2,}/', "\n", "Hi,\nHow are you?\n\n\nI am just testing");
ありがとうございました!
JSでこの特定のphppregreplaceに相当するものはありますか?
preg_replace('/[\n]{2,}/', "\n", "Hi,\nHow are you?\n\n\nI am just testing");
ありがとうございました!