Really Java and Regex? "////" to match a single slash? Really?
Posted
by Soldier.moth
on Stack Overflow
See other posts from Stack Overflow
or by Soldier.moth
Published on 2010-03-23T22:28:25Z
Indexed on
2010/03/23
22:33 UTC
Read the original article
Hit count: 319
I know that the following works but it is not that readable, is there any way to make it more readable in the code itself without the addition of a comment?
//Start her off
String sampleregex = "////";
if (input.matches(sampleregex))
//do something
//do some more
© Stack Overflow or respective owner