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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -