China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-02 15:00
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Proceeding to the search string issue in find View 2,521 Replies 17
Floor 16 Posted 2008-07-17 10:50 ·  中国 湖北 武汉 联通
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by YoDe at 2008-7-15 22:36:
\< represents the front boundary of a word, and \> represents the back boundary of a word. As for this sentence, I can't understand it.

Let's give a simple example!

For example, there is a string now, excluding the square brackets on both sides, then
"\<it" can match the word "is" after "this", but the "is" contained in the word "this" cannot be matched, because the "\<" symbol in the expression "\<it" requires that the left side of this "it" is a space or other characters, not letters, underscores, and any characters that make up a word. So the "is" in "this" cannot match the expression. \< only represents a position, where the front is a non-word character and the back is a word character, and \> is the opposite of it.

What are word characters?
a-z, A-Z, _, 0-9 can all be characters that make up a word, and others are not word characters. For example, symbols ~!@#$%^&*()_+... These are not.

You can search for articles about regular expressions on the Internet.
Floor 17 Posted 2008-07-19 01:42 ·  中国 浙江 台州 电信
中级用户
★★
Credits 224
Posts 102
Joined 2007-11-09 00:19
18-year member
UID 102111
Gender Male
Status Offline
Thanks moderator, I'll read more relevant information online by myself
Floor 18 Posted 2008-07-19 15:08 ·  中国 广东 深圳 电信
初级用户
Credits 56
Posts 28
Joined 2008-07-05 16:24
17-year member
UID 121131
Gender Male
Status Offline
Bump
Forum Jump: