dazed thoughts
a mind dump
Tuesday, June 28, 2011
(.+) and ([^"]*) - Regexps
The Cucumber testing framework of Rails generates "([^"]*)" if you have an undefined step like
Given a user named "John"
But you can also use "(.+)" or if you don't want the quotes, simply (.+). Basically, (.+) and ([^"]*) are equivalent.
Misc. Tags: regexp, regular expression
No comments:
Post a Comment
Please be considerate in what you say.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please be considerate in what you say.