当您事先知道搜寻字串时,请使用语法2。
传回字元位置,代表搜寻字串中第一个符合的位置。
Returns the character position where the first successful match begins in a searched string.
最简单的规则运算式形式,就是与搜寻字串比较的单一、一般字元。
The simplest form of a regular expression is a single, ordinary character that is compared with a searched string.
您可以使用规则运算式来搜寻字串中的模式、取代文字,以及撷取子字串。
You can use regular expressions to search for patterns in a string, replace text, and extract substrings.
快速取代,在开启进行编辑或包含在目前专案内的文件中,比对或取代搜寻字串或运算式。
Quick replace to match or replace search strings or expressions in documents open for editing, or in the current project.
此控制项支援搜寻字串、搜寻指定范围内的值、将资料表中的属性值与指定的值做比较、排序以及自订查询。
The control supports searching strings, searching values between a specified range, comparing a property value in a table to a specified value, sorting, and custom queries.
在这个范例中,执行的是简单字串搜寻。
说明如何在您逐字元输入搜寻的字串时,比对使用中文件内的文字。
Shows how to match text in the active document as you type a search string character by character.
搜寻指定的子字串,并传回来源字串内第一个相符项目的以零起始的索引。
Searches for the specified character and returns the zero-based index of the first occurrence within the entire source string.
如果属性传回负值,就表示控制项的内容中找不到要搜寻的文字字串。
If the property returns a negative value, the text string being searched for was not found within the contents of the control.
搜寻将从指定索引的文字开头开始执行部分比对,并传回清单中第一个符合指定子字串的项目。
The search performs a partial match starting from the beginning of the text at the specified index, and returns the first item in the list that matches the specified substring.
搜寻将从指定索引的文字开头开始执行部分比对,并传回清单中第一个符合指定子字串的项目。
The search performs a partial match starting from the beginning of the text at the specified index, and returns the first item in the list that matches the specified substring.
应用推荐