Java string.replaceFirst problems

197 Views Asked by At

I'm trying to replace a part of a string. The part contains some special characters:

#L(inches)=24#

I know replaceFirst is regex driven but I can't seem to create a regular expression that matches this part in a string, any ideas?

1

There are 1 best solutions below

0
Sean Patrick Floyd On BEST ANSWER
#.*?#

This should match the entire String above.