?
-
I have managed to form the regex for the following two:
CTL = <any US-ASCII control character (octets 0 - 31) and DEL (127)>
String CTL_REGEX = "([[\\x00-\\x1F]\\x7F])";
LWS = [CRLF] 1*( SP | HT )
String LWS_REGEX = "((\r\n)??( |\\x09)+?)";
However, the following stumped me for hours.
TEXT = <any OCTET except CTLs, but including LWS>
String TEXT_REGEX = ...... // help me out please.
CTL = <any US-ASCII control character (octets 0 - 31) and DEL (127)>
String CTL_REGEX = "([[\\x00-\\x1F]\\x7F])";
LWS = [CRLF] 1*( SP | HT )
String LWS_REGEX = "((\r\n)??( |\\x09)+?)";
However, the following stumped me for hours.
TEXT = <any OCTET except CTLs, but including LWS>
String TEXT_REGEX = ...... // help me out please.