Question: in java regex how should i change my pattern in order let it match everything when it is not a token? A41.input AA BB CCCC2DDD

in java regex

how should i change my pattern in order let it match everything when it is not a token?

 "A41.input" AA BB CCCC2DDD aaabbb if b c d IF 

so the token is AA, BB, CCCC2DDD, aaabbb, if, b, c, d

here is what i had, but it has some wired errors, it include A41 and input as tokens too

Pattern p = Pattern.compile("\"[a-zA-Z0-9.]\"");

how should i fix that?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!