Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By DarrylBurke

Thread: remove digits from txt file

  1. #1
    mohsen.noor is offline Member
    Join Date
    Dec 2012
    Posts
    18
    Rep Power
    0

    Default remove digits from txt file

    Hi
    I need code to removing digits And some special characters from file

    Ex :
    input:
    1
    00:00:00,516 --> 00:00:03,470
    <i>By the fall of 2011,</i>
    <i>technology had taken</i>


    output:

    By the fall of
    technology had taken

    Thanks

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: remove digits from txt file

    Quote Originally Posted by mohsen.noor View Post
    Hi
    I need code to removing digits And some special characters from file
    .....
    I think I speak for all in wishing you much luck in solving this.

    Seriously though, please don't dump work on this forum. We'll be happy to help you with *your* code, but we are volunteers, we love Java and teaching Java, but we're not here to simply produce code for you. Please feel free to post what you've tried, tell us what problems you may be having with it, and we'll be more than happy to try to help.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,525
    Blog Entries
    7
    Rep Power
    20

    Default Re: remove digits from txt file

    Given your example you want to remove digits, colons, commas, angular brackets, minus signs, slashes and the lowercase letter i. Correct?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    5

    Default Re: remove digits from txt file

    Your example is easy if the file is really always structured like this and you always need the same information...otherwise, I agree with Fubarable :)

  5. #5
    mohsen.noor is offline Member
    Join Date
    Dec 2012
    Posts
    18
    Rep Power
    0

    Default Re: remove digits from txt file

    Quote Originally Posted by Fubarable View Post
    I think I speak for all in wishing you much luck in solving this.

    Seriously though, please don't dump work on this forum. We'll be happy to help you with *your* code, but we are volunteers, we love Java and teaching Java, but we're not here to simply produce code for you. Please feel free to post what you've tried, tell us what problems you may be having with it, and we'll be more than happy to try to help.
    if u don't know answer please do n't write anything and waste my time
    This is simple java program and not dump work, This pro cover important thing regarding file concepts in java

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is online now Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default Re: remove digits from txt file

    Quote Originally Posted by mohsen.noor View Post
    if u don't know answer please do n't write anything and waste my time
    This is simple java program and not dump work, This pro cover important thing regarding file concepts in java
    This kind of rude and obnoxious behavior is not acceptable here. You are banned for 7 days.

    After the period of ban is over, if you choose to continue to post here please spell words in full. 'You' not 'u', 'problem' not 'pro'. This is a technical forum, not SMS chat. And it's not a free code service.

    Oh, and have a merry Christmas!

    db

    THREAD CLOSED
    Fubarable likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: remove digits from txt file

    Quote Originally Posted by mohsen.noor View Post
    if u don't know answer please do n't write anything and waste my time
    Please consider my initial reply one that if you followed would have helped you get help here. If not then the opposite will be true.

    This is simple java program and not dump work, This pro cover important thing regarding file concepts in java
    If it's not a dump, then you shouldn't be reluctant to show your work, pure and simple. If you can't abide by our requests, then please feel free to go elsewhere, but I think that you'll get the same response pretty much anywhere you go.

Similar Threads

  1. Replies: 3
    Last Post: 10-27-2011, 05:23 PM
  2. how to remove contents in a file
    By trkece in forum New To Java
    Replies: 6
    Last Post: 02-16-2011, 07:31 AM
  3. Replies: 1
    Last Post: 01-19-2011, 09:23 PM
  4. how to remove word words from txt file?
    By amroosobhy in forum New To Java
    Replies: 3
    Last Post: 10-08-2010, 01:49 PM
  5. remove a portion from a file
    By alon2580 in forum New To Java
    Replies: 13
    Last Post: 08-25-2008, 01:45 PM

Tags for this Thread

Posting Permissions

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