Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to find words between place holders

 
vittal mareddy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a value in string variable, i want to get wards between place holder, is there any api i can use from JDK1.5,

String str ="select user_name,'$user_name$','$test_app1$' from dm_user where r_is_group = FALSE and user_state = 0 and user_name not like 'dm%' order by user_name";

I need to get user_name, test_app1

Thanks
vittal








 
Rishi Shah
Ranch Hand
Posts: 43
Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use regular expressions:



You can learn about regular expressions here: http://codular.com/regex
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic