summaryrefslogtreecommitdiff
path: root/sample/regx.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/regx.rb')
-rw-r--r--sample/regx.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/regx.rb b/sample/regx.rb
index b9d8ca6..aaf4b5f 100644
--- a/sample/regx.rb
+++ b/sample/regx.rb
@@ -17,7 +17,7 @@ while TRUE
re = gets
break if not re
re.chop!
- str.gsub! re, "#{st}&#{en}"
+ str.gsub! re, "#{st}\\&#{en}"
print str, "\n"
end
print "\n"