Hello,
I want to erase the end of a string, but I can not find the correct regular expressions. I have done this
And I want to delete everything after the sign "="Code:String foo; foo = "187zjkhjklhdc18_ & foo = 453";
I tried the following
but it does not work. On the other hand, symbols \ or s \ w causes a compilation error, how to make him recognize the regex? Thank you in advance for your help.Code:foo = foo.replaceAll("^ *=", ""); foo = foo.replaceAll("^ *= *\ w* *", "");
Bookmarks