Tuesday, April 24, 2012

java replaceAll(regex, replacement) regex command

Hello I would like to know if anyone knows the regex command to remove the following



 name = 


from the following



 name = wlr


leaving only



 wlr


these details are taken from a txt file but the name = part can appear multiple times



so I was thinking something like this would work but it doesnt work properly



 String file_name = newLine3.replaceAll("name = ", "");


Any help appreciated
Thanking You





No comments:

Post a Comment