中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-02 21:41
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Help] Question about how to use findstr character class expressions
Printable Version  1,130 / 6
Floor1 everest79 Posted 2006-12-25 23:28
金牌会员 Posts 1,127 Credits 2,564
findstr /r /m ".txt"

When I want to search all text files in the current directory for files that contain Chinese characters (double-byte characters), how should be expressed??

[ Last edited by namejm on 2006-12-25 at 12:57 PM ]
Floor2 namejm Posted 2006-12-25 23:38
荣誉版主 Posts 1,737 Credits 5,226 From 成都
   is that what you want to search for? Or do you want to search for all Chinese characters?
Floor3 everest79 Posted 2006-12-25 23:40
金牌会员 Posts 1,127 Credits 2,564
All Chinese characters
Floor4 everest79 Posted 2006-12-26 01:11
金牌会员 Posts 1,127 Credits 2,564
Could an expert please give me some advice, mail:everest79@163.com
Floor5 namejm Posted 2006-12-26 02:04
荣誉版主 Posts 1,737 Credits 5,226 From 成都
  findstr doesn't have a regex specifically for matching Chinese characters yet, so it's rather troublesome.
Floor6 everest79 Posted 2006-12-26 02:55
金牌会员 Posts 1,127 Credits 2,564
Could namejm give an example of a class expression? Is it used by the name of a character set?
Floor7 namejm Posted 2006-12-26 04:57
荣誉版主 Posts 1,737 Credits 5,226 From 成都
  I once posted this article before, the basic usage of FINDSTR regular expressions as organized by brother 9527. I can't find that post right now, so I'm posting it again:
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023