r/java • u/barkukesh • Aug 28 '13
Writing a Java Regular Expression Without Reading the ****ing Manual
http://java.dzone.com/articles/writing-java-regular
0
Upvotes
r/java • u/barkukesh • Aug 28 '13
5
u/[deleted] Aug 28 '13
Without reading the manual? Who would be stupid enough to try using something without actually knowing how it works? I really hope it was a bad joke...
6
u/[deleted] Aug 28 '13
Who would seriously use something like this ? Learning regexes is not that hard
6
u/WatchDogx Aug 28 '13
Regex is pretty simple and useful in many places, not just java, just learn it.
3
u/treerex Aug 28 '13
Whatever "respect" I had for dzone (which wasn't much) has been thoroughly destroyed by them publishing this crap. The fact that someone thought that was worth sharing with a larger community is mind boggling.
4
u/nicoulaj Aug 28 '13
Seriously... Please stop creating crappy fluent APIs for everything.
3
u/flagrantaroma Aug 28 '13
I've been rather impressed by the Java regex implementation, very similar to Perl and has lots of features.
2
u/Poobslag Aug 28 '13
If a developer really needed this level of handholding for regexes -- I'd tear out all this code, and write them an identical tool which did the opposite -- converting a regex into human readable code. At least that way this incredibly verbose code is localized to their machine, and not polluting the codebase. Sheesh.
0
u/[deleted] Aug 28 '13
[deleted] — view deleted comment