This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Help with regsub

Help for those learning Tcl or writing their own scripts.
Post Reply
R
Reynaldo
Halfop
Posts: 54
Joined: Wed May 11, 2005 2:51 am

Help with regsub

Post by Reynaldo »

Code: Select all

regsub -all "                                       " $html "" html
regsub -all "                                       " $html "" html
regsub -all "                                       " $html "" html

is it any idea to make it simple?, coz the output after parse from web, return to many space(blank line).
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

Code: Select all

regsub -all {\s{5,}} $html "" html
this will replace more than 5 spaces
R
Reynaldo
Halfop
Posts: 54
Joined: Wed May 11, 2005 2:51 am

Post by Reynaldo »

Thanks bro dwickie
Post Reply