Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regex..Help please..  RSS feed

 
Raj Mathur
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to know how can i store the strings which i receive from calling

group() method in regex..

I have a string i have divided each of its elements separately by pattern matching.now i need to store each of the elements into different char so that i can operate on them by doing addition or sum other thing..
 
Campbell Ritchie
Marshal
Posts: 55672
161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Have you seen what Matcher#group() returns? You would have to apply a reference to that.
How are you going to do addition on Strings? Please explain more.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!