Skip to content

Commit

Permalink
fixed error in match School
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelWorld20 committed Nov 3, 2023
1 parent 4b19dc6 commit a1ae5c9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions 0x06-regular_expressions/0-simply_match_school.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#!/usr/bin/env ruby
# This regular expression must match School
regex = /School/

match = ARGV[0].match(regex)

if match
puts match[0]
else
puts ''
end
puts ARGV[0].scan(/School/).join

0 comments on commit a1ae5c9

Please sign in to comment.