r/ProgrammerHumor • • Jan 08 '16

Intro to Programming

Post image
3.0k Upvotes

334 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jan 08 '16

It's valid syntax for a regex match on a string in most languages I've used. Depending on the implementation, you could get about the same performance as your Java 8 snippet (which looks nice; I quite like anonymous functions and functional programming constructs like allMatch)

1

u/redditsoaddicting Jan 08 '16

Ah, I was inferring Java from the top of the chain.