java - REGEXP - how to read " character? -
I am using hasoop pig with regexp (REGEX_EXTRACT_ALL) - this is Java parsing. I have a string:
$ Path = \ "/ \" "" Nokia6070 / 2.0 (03.20) Profile / MIDP-2.0 configuration / p>
I am expanding two groups:
First: DYN_USER_ID = 32753477; $ Path = \ "/ \"; DYN_USER_CONFIRM = e6d2a0a7b7715cb10d1dca504e3c5e80; $ Path = \ "/ \" Second: Nokia6070 / 2.0 (03.20) profile / MIDP-2.0 configuration / CLDC-1.1 As you can see, the first string "characters" But with escape character. \ The Simulates solution is:
". (. *) "" (. *) " But is this the best one?
"(. *) (? & Lt;! \\\\)" " (. *) " Use : (? & Lt;! ???) ??? / code> Where Is there some string, here the character backspace is represented by a regedx-escape and string-escape backslash.
Comments
Post a Comment