07-22-2017, 00:38 +0200
Forum: Overview#tclcode snippets
Examples for regexp and regsub
AuthorPost
CyBex  03-20-2006, 21:21   | [TCL] re_syntax Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da
(Administrator)

Avatar

Member since 01/2004
260 Posts
Location: Berlin

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
This post was edited 1 times, last on 03-20-2006, 21:24 by CyBex
CyBex  03-20-2006, 21:23   | Remove HTML Tages Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da
(Administrator)

Avatar

Member since 01/2004
260 Posts
Location: Berlin
                                                                                                                              
1
regsub -all {<.+?>} $text { } text


replace every <tag> or </tag> with " " (space)

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
avilon  04-24-2006, 21:26  

Avatar

Member since 05/2005
4 Posts
Location: Germany

[Not loaded: http://card.mygamercard.net/sig/avilon87.png]
CyBex  04-25-2006, 20:28   | mehr davon :) Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da
(Administrator)

Avatar

Member since 01/2004
260 Posts
Location: Berlin
ja, mehr davon (und auch aus anderen gebieten), ich krieg dann bestimmt auch mal ne macke und übertrag die alle auf die Seite, die sich länger halten und brauchbar aussehen. is hier user2user, auch wenn ihr keine topics anlegen könnt, wir würden auch snippets übertragen/verschieben, wenn sie brauchbar sind.. (könnt das jemand nochmal in englisch schreiben?)

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
Gotisch  04-25-2006, 20:31   ICQ
(Moderator)
Member since 01/2006
19 Posts
Location: Europe
Yes, more of those (also from other topics), i surely will get crazy enough eventually to put them all on a page, where it will stay longer and look clearer. This forum is more user2user, even if you cant make topics, we could move them, if they are good
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen