Skip to content

Commit

Permalink
fixed error in repetion 1
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelWorld20 committed Nov 3, 2023
1 parent 1a56e49 commit e18e394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 0x06-regular_expressions/'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
# This regular expression will match the case from 0 to 1

puts ARGV[0].scan(/hb{0,1}tn/).join
2 changes: 1 addition & 1 deletion 0x06-regular_expressions/2-repetition_token_1.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
# This regular expression will match the case from 0 to 1

puts ARGV[0].scan(/hbt{0,1}n/).join
puts ARGV[0].scan(/hb{0,1}tn/).join

0 comments on commit e18e394

Please sign in to comment.