Link to home
Start Free TrialLog in
Avatar of jamie_lynn
jamie_lynn

asked on

How can I extract string using regex in Java?

Hi,
How can I extract string using regex in Java?
String s = "node[attribute=value]";

I want to extract node, attribute, operator, and  value.
node, attribute, and  value can be any string (numbers, spaces, etc)
Operator can be +, - , = , %, <, >, ~, !=.

Thanks
Jamie
ASKER CERTIFIED SOLUTION
Avatar of ddrudik
ddrudik
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the question and the points.
Avatar of jamie_lynn
jamie_lynn

ASKER

Thanks for the answer =)