Dideved - 11:18 pm on Apr 27, 2013 (gmt 0)
You say "dead easy" as if the alternatives were not. But that's not the case.
If the goal is to match a path segment, then
[^/]+. That's dead easy. If the goal is to match *any* path and *any* filename, as was the case that started this discussion, then
.*, which is also dead easy.
This is a lot simpler than you're making it out to be. There's no need for arbitrary rules on punctuation.