Results 1 to 4 of 4
  1. #1
    prof.deedee is offline Member
    Join Date
    Oct 2009
    Posts
    36
    Rep Power
    0

    Default 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

  2. #2
    prof.deedee is offline Member
    Join Date
    Oct 2009
    Posts
    36
    Rep Power
    0

    Default

    pleeeeeeeeeeease help me

  3. #3
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    What did you try?

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    10

    Default

    Quote Originally Posted by r035198x View Post
    What did you try?
    He posted here.

Similar Threads

  1. regular expression
    By QkrspCmptPop in forum Advanced Java
    Replies: 8
    Last Post: 01-20-2010, 04:55 AM
  2. regular expression
    By ras_pari in forum Advanced Java
    Replies: 27
    Last Post: 10-07-2009, 12:25 PM
  3. Basic regular expression help
    By predhme in forum New To Java
    Replies: 1
    Last Post: 06-26-2009, 01:29 AM
  4. need help to make this regular expression
    By aruna1 in forum New To Java
    Replies: 1
    Last Post: 04-12-2009, 08:09 PM
  5. Regular expression with Unions
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-09-2008, 01:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •