re-internal.rb
changeset 60 68d664c204d2
parent 58 f516892da470
--- a/re-internal.rb	Sun Nov 11 17:28:11 2012 +0000
+++ b/re-internal.rb	Wed Nov 14 00:02:38 2012 +0000
@@ -11,11 +11,12 @@
 	#create a new regular expression based on current value of i
 	re = Regexp.new(/((a?){#{i}})(a{#{i}})/)
 
-	if re.match(string)
-		puts "matched string  a * #{i} with regex #{re}"
-	else
-		puts "unmatched string a * #{i} with regex #{re}"
-	end
+        re.match(string)
+	#if re.match(string)
+	#	puts "matched string  a * #{i} with regex #{re}"
+	#else
+	#	puts "unmatched string a * #{i} with regex #{re}"
+	#end
 	
-	puts "in = #{(Time.now - start_time) * 1000} milliseconds"
+  puts "#{i} %.5f" % (Time.now - start_time)
 end