Notepad ++ - keep numbers only

后端 未结 1 671
天涯浪人
天涯浪人 2021-01-18 06:16

I have a text file containing numbers and characters (in arabic)

like this:

943894رنيش964737

ترشقة1045051

ضمنزلبالق10653

to this:

1条回答
  •  走了就别回头了
    2021-01-18 06:36

    use regex replace with this regex: [^\d] and replace with empty string

    press ctrl+f
    goto replace tab
    check regular expressions
    put '[^\d]' in search
    press 'replace all'
    

    use this regex if you want to keep line breaks: [^\d\r\n]

    0 讨论(0)
提交回复
热议问题