记事本++,如何使用正则表达式删除所有非ASCII字符? [英] Notepad++, How to remove all non ascii characters with regex?

查看:254
本文介绍了记事本++,如何使用正则表达式删除所有非ASCII字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了很多,但没有写入如何从记事本中删除非ASCII字符+ ??



我需要知道要查找和替换的命令(如果我想制作一个白名单并将所有的ASCII字/行加上书签,那么不要如果文件相当大,并且不能选择所有ASCII行,并且只想选择包含非ASCII字符的行,则ASCII行将被取消标记


  • / p>



  • 解决方案

    此表达式将搜索非ascii值:

      [^ \x00-\x7F] + 

    勾选搜索模式=正则表达式,然后单击查找下一个。



    来源:
    修改任何ASCII字符


    i searched a lot but no where its written how to remove non ASCII characters from notepad+??

    i need to know what command to write in find and replace (with picture would be great)

    • if i want to make a white-list and bookmark all the ASCII words/lines so non ASCII lines would be unmarked

    • if the file is quite large and cant select all the ASCII lines and just want to select the lines containing non ASCII characters..

    解决方案

    This expression will search for non-ascii values:

    [^\x00-\x7F]+
    

    Tick off 'Search Mode = Regular expression', and click Find Next.

    Source: Regex any ascii character

    这篇关于记事本++,如何使用正则表达式删除所有非ASCII字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆