regex - What would be regular expression of finding all strings starts with $ in java -
i having 1 string containing "this time involve $fo, $rtp, $dfg , $rg"
this work too
string str="this time involve $fo, $rtp, $dfg , $rg" ; string[] arr=str.split(" "); (string i:arr){ if(i.indexof("$")==0){ system.out.println(i.replaceall("\\,","")); } }
Comments
Post a Comment