java - Replace an Expression Within Text Boundaries -


I have a problem that I have solved in Java using a simple recursive method. However, I'm looking for a better way to do this.

In the initial problem, the presence of white space within the printed / base 64 encoded mime header is included - as I've read the RFC 2047 specification - it is not allowed that this means that when the blank space exists If there is a decoding failure for the MIME header, eg.

  =? Iso-8859-1? Why? H = E4 and nothing else? =  

or more pertinently:

  =? Iso-8859-1? Why? H = E4 ll? = Protected this text = ISO-8859-1? Why? Mo nk ee =  

The goal is to only remove white space in between =? ? = Restrictions (or using = 20 to be encoded again) Other text outside it should be preserved.

I am searching for alternative ways to solve this my target language for Java, this is Java Any ideas from the simplest, cleanest approach to it?

Can you create a simple state machine to track you are between =? And? =, Then read the input four around and it is necessary to read four axes in four letters when necessary ...

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -