Watir tips and tricks
A collection of useful tips and tricks for WATIR and RUBY.
Home
Installation
Errors
Wednesday, May 4, 2011
Using parameters in regular expressions
Here is an example on how to use parameters in a regular expression:
if not checkintext.match(/
(#{checkfortxt})
/)
raise "Text '" + checkfortxt + "' not found!"
end
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment