Remove word from string

Discussion in 'ASP .Net' started by shapper, Feb 14, 2008.

  1. shapper

    shapper Guest

    Hello,

    I have 2 strings:

    A = "filename.extension"

    and

    B = ".extension"

    I want to remove B from A to get the filename ...

    I prefer to do it this way just in case filename has also dots.

    How can I do this?

    Thanks,
    Miguel
    shapper, Feb 14, 2008
    #1
    1. Advertising

  2. Mark Rae [MVP], Feb 14, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon-Pierre  Jarry
    Replies:
    2
    Views:
    2,333
    Henrik
    Aug 10, 2005
  2. shapper

    Remove first word of a string

    shapper, Oct 1, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    800
    Siva M
    Oct 1, 2006
  3. Brajmohan S.

    Comparing a string word by word

    Brajmohan S., Jan 17, 2011, in forum: Ruby
    Replies:
    2
    Views:
    106
    Robert Klemme
    Jan 19, 2011
  4. Guy Smiley

    Best way to remove last word from a string

    Guy Smiley, Aug 3, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    100
    Gunnar Hjalmarsson
    Aug 4, 2004
  5. Sandfordc
    Replies:
    11
    Views:
    170
    Random
    Jun 3, 2005
Loading...

Share This Page