java - Regular expressions: all words after my current one are gone -
i need remove strings text file, such as:
flickr:user=32jdisffs flickr:user=acssd flickr:user=asddsa89
i'm using fields[i] = fields[i].replaceall(" , flickr:user=.*", "");
however issue approach word after flickr:user=
removed content, after space.
thanks
you need
replaceall("flickr:user=[0-9a-za-z]+", "");
Comments
Post a Comment