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>

CLDC-1.1 "

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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -