Hi!
I need a code that will allow only 5 tabs in a row and all other consecutive tabs after that should be stripped.
This is a sample code from the JS editor:
I hope it makes sense. Thank you.Code:text = text.replace(/^[ \t]+$/mg,"");
Hi!
I need a code that will allow only 5 tabs in a row and all other consecutive tabs after that should be stripped.
This is a sample code from the JS editor:
I hope it makes sense. Thank you.Code:text = text.replace(/^[ \t]+$/mg,"");
Something like this should work
Code:text = text.replace(/\t{5}/m, "");
qwikad.com (12-31-2012)
In an effort to keep things organized, you have the option to set a thread to resolved when an issue is fixed. To make the status of the thread resolved:
1. Go to your first post
2. Edit your first post
3. Click "Go Advanced"
4. In the dropdown next to the title, select "RESOLVED"
Bookmarks