How do I rip all numbers and other characters from text AT ONCE?

Discussion in 'Programming' started by dess71, Jun 10, 2013.

  1. #1
    I can do it in notepad one by one. For eg I write the number 1 and I replace it with blank and click replace all then that number will be replaced with nothing in other words the number one (1) will be deleted from all the text.But it is tedious to do one by one for all the numbers. Is there any other way I can delete all the numbers from text/article with one click? Thx.
     
    dess71, Jun 10, 2013 IP
  2. dess71

    dess71 Well-Known Member

    Messages:
    962
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    143
    #2
    I found the answer after searching for 3+ hrs. To remove all numbers from text,

    1. Press Ctrl+H to open the Find and Replace dialog.

    2. In the "Find what" box, type ^#

    3. Leave the "Replace with" box empty.

    4. Replace All.

    That is it Woohoo.
     
    dess71, Jun 10, 2013 IP
  3. socialappzone

    socialappzone Member

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    31
    Digital Goods:
    1
    #3
    It is probably worth migrating to a more mature text editing tool. I use PsPad but there are many other free tools that let you do awesome text manipulation with macros and regular expressions. I think notepad++ is another very popular tool.
     
    socialappzone, Jun 10, 2013 IP
  4. dess71

    dess71 Well-Known Member

    Messages:
    962
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    143
    #4
    I tried Notepad ++ but couldn't do what I wanted.
     
    dess71, Jun 11, 2013 IP
  5. jscg

    jscg Well-Known Member

    Messages:
    161
    Likes Received:
    5
    Best Answers:
    3
    Trophy Points:
    108
    Digital Goods:
    2
    #5
    notepad++: ctrl+f -> replace (tab).
     
    jscg, Jun 11, 2013 IP
  6. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #6
    I can write a pretty simple PHP script to do it if you haven't found a solution yet.
     
    aidanriley629, Jun 11, 2013 IP
  7. dess71

    dess71 Well-Known Member

    Messages:
    962
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    143
    #7
    I think the ^# command I mentioned above works in microsoft Word only.
     
    dess71, Jun 15, 2013 IP
  8. dess71

    dess71 Well-Known Member

    Messages:
    962
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    143
    #8
    Also I found out that to reap all page breaks and line breaks use this ^p

    another Woohoo
    because this solved another PItn (pain in the neck) problem for me for a long time. I.e I usually try to create content from email messages and they have such a structure to be on the left side of the field. I have to restructure line by line which is really painful. Now with this code and ONE click - Voilla.
     
    dess71, Jul 4, 2013 IP