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.
Old posts that have not been replied to for several years.
-
w
w0t
Post
by w0t »
hi,
i've problem with this piece of code
Code: Select all
set line "user last seen 6hrs 7mins ago"
set wrd "ago"
regexp { ([0-9].*) $wrd} $line garbage theTime
$theTime are always empty
-
egghead
- Master
- Posts: 481
- Joined: Mon Oct 29, 2001 8:00 pm
-
Contact:
Post
by egghead »
set line "user last seen 20wks 6hrs 7mins ago"
set regrule {user last seen (.*) ago}
regexp $regrule $line garbage theTime
puts $theTime