aspose file tools
The moose likes Java in General and the fly likes how to find words between place holders Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to find words between place holders" Watch "how to find words between place holders" New topic
Author

how to find words between place holders

vittal mareddy
Greenhorn

Joined: Jul 24, 2011
Posts: 14
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

Joined: Sep 05, 2012
Posts: 43

You can use regular expressions:



You can learn about regular expressions here: http://codular.com/regex
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to find words between place holders
 
Similar Threads
Help Regarding Cookies and session
Problem with SQL select
how do i convert 0x64766972 to dvir
hashtables
getString() in ResultSet