java - False with regular expression from properties file -
so here problem. have string comment in java:
string s = "// "then" clause: decrease" and when i'm doing this:
system.out.println(s.matches("(^(//).+)")); its true. but, when have properties file, where
listing = "(^(//).+)" and doing same
system.out.println(s.matches(resourcebundle.getstring("listing"))); i'm receiving false. why? , regex must in properties receive true? thanks
remove quotation mark in properties file.
listing = (^(//).+)
Comments
Post a Comment