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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -