85605/how-to-remove-all-line-breaks-from-a-string
Hello @kartik,
Windows would be \r\n, but Linux just uses \n and Apple uses \r.
someText = someText.replace(/(\r\n|\n|\r)/gm, "");
That should remove all kinds of line breaks.
Hope it helps!!
Thank you!!
Can i know How to remove text ...READ MORE
Hello Kartik, Use the JSON function JSON.parse(theString) ...READ MORE
Hello, You can produce the javascript file via ...READ MORE
Hello @kartik, If your script is called myScript.js ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
Hello, This is simple you just need to ...READ MORE
Hey @kartik, Named routing is another amazing feature of ...READ MORE
Hello @kartik, As an alternative to regular expressions ...READ MORE
Hello @kartik, Use modern Javascript, with remove! const parent = ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.