Matt's Tech HOWTO's
Matt Feenstra is an Architect and Developer, living and working in Palm Desert, CA
Sunday, April 28, 2019
Ruby - Check for a regexp in a file
True/False
File.readlines(text_filename).grep(/myRegexp/).any?
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment