I am new in Regular Expression. How can i split Points data from the line below :
((X1,Y1),(X2,Y2),(X3,Y3))
Spliting to :
(X1,Y1)
(X2,Y2)
(X3,Y3)
Thanks in Advance 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, extracting contents out of brackets or parenthesis may very soon become complex with regex, when nested brackets are introduced. But still in your current case, it seems you can get your results with the use of
PatternandMatcherclass (Don’t try tosplit, as it would be slightly more complex):