Y
Hacker News
new
|
ask
|
show
|
jobs
by
brobinson
785 days ago
Note that Ruby also has \z which is what you generally want instead of \Z.
(\Z allows a trailing newline, \z does not)
1 comments
dwheeler
785 days ago
You want \Z in Python, and \z in most other languages, to match on end of string. But in some languages $ really does match end of string. As always, you must check your docs.
link