Results 1 to 4 of 4
Thread: regular expression
- 02-18-2010, 09:48 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 36
- Rep Power
- 0
regular expression
Hi
This time I don't know how to write regular expression to match :
String sql = "select * from user where username='" + username +"' and password='" + password + "'";
what I want exactly is:
1- match word select (ignore cases).
2-if that line match then save the variable name(which sql in my example above) save it in String test.
3-make another regular expression to match test (from step 2) into any other line.
Thanks
- 02-19-2010, 11:09 AM #2
Member
- Join Date
- Oct 2009
- Posts
- 36
- Rep Power
- 0
pleeeeeeeeeeease help me
- 02-19-2010, 11:12 AM #3
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
What did you try?
- 02-19-2010, 11:15 AM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Similar Threads
-
regular expression
By QkrspCmptPop in forum Advanced JavaReplies: 8Last Post: 01-20-2010, 03:55 AM -
regular expression
By ras_pari in forum Advanced JavaReplies: 27Last Post: 10-07-2009, 12:25 PM -
Basic regular expression help
By predhme in forum New To JavaReplies: 1Last Post: 06-26-2009, 01:29 AM -
need help to make this regular expression
By aruna1 in forum New To JavaReplies: 1Last Post: 04-12-2009, 08:09 PM -
Regular expression with Unions
By Java Tip in forum Java TipReplies: 0Last Post: 01-09-2008, 12:03 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks