Results 1 to 2 of 2
  1. #1
    java_user is offline Member
    Join Date
    Jan 2010
    Posts
    1
    Rep Power
    0

    Default Pick up a double quoted substring

    I need to pick up a qualified path name of a file inside a string. For example "C:\Document and settings\user\test111.txt" on Windows or "/tmp/mydir/test111.txt" on UNIX.
    The sample input string may look like
    ...some data......"C:\Document and settings\user\test111.txt"....some other data......"/tmp/mydir/test111.txt" ..........

    What is the best way to do this ?
    I tried to use tokenizer. But I don't know how to specify " (double quote) as the delimeter.

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

Similar Threads

  1. Replies: 5
    Last Post: 03-21-2009, 09:32 PM
  2. Double.valueOf() vs Double.parseDouble()
    By greenbean in forum New To Java
    Replies: 10
    Last Post: 01-12-2009, 08:39 AM
  3. Help with substring
    By hiklior in forum New To Java
    Replies: 12
    Last Post: 06-28-2008, 06:48 AM
  4. How can i get substring
    By 82rathi.angara in forum New To Java
    Replies: 14
    Last Post: 06-27-2008, 04:35 AM
  5. substring
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-11-2007, 08:15 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
  •