vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Application for removing blank rows (https://vborg.vbsupport.ru/showthread.php?t=166368)

valdet 12-29-2007 07:15 AM

Application for removing blank rows
 
As title hints it, I would like some advice if there is an application that would remove blank rows from any type of text based file.

I've googled with many terms but couldnt find any.

Here is a rough example of how would it look:

Replace this block of text:

Quote:




This is the first row

The second row is a bit longer



The third row is longer and more than two lines away
The fourth row is right here









The fifth row is awayyyy


with this:
Quote:

This is the first row
The second row is a bit longer
The third row is longer and more than two lines away
The fourth row is just here
The fifth row is awayyyy
Thanks and best regards,
Val.

nexialys 12-29-2007 11:50 AM

usually, we do a "search - replace" in GREP for this...

search double-return (\r\r) replace with (\r) ... most code editors can do it...

valdet 12-30-2007 09:44 AM

Thanks nexialys,

I also discovered that Notepad++ has the same feature. I had it right in front of my nose, and didn't see it.

Regards,
Val.


All times are GMT. The time now is 05:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00997 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete