szabivan

Untitled

Feb 3rd, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.21 KB | None | 0 0
  1. set regex ""
  2. set text ""
  3. for {set i 1} {$i < 100 } {incr i} {
  4.   set regex [ string cat "a?" $regex "a" ]
  5.   set text [ string cat $text "a"]
  6.   puts [ string cat $i "\t" [ time { regexp $regex $text    } ] ]
  7. }
Advertisement
Add Comment
Please, Sign In to add comment