AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX: Программирование
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 20.11.2002, 09:11   #1  
Andrew Besedin is offline
Andrew Besedin
Участник
 
119 / 15 (1) ++
Регистрация: 25.01.2002
Поиск специальных символов
Добрый день!

Это уже было, знаю, но не могу найти...

Есть какой-то хитрый способ мскать по Х++ тексту спец. знаки. Напр, я хочу найти фрагмент <20
Подскажите, плиз, как это сделать?

Спасибо,
Андрей
Старый 20.11.2002, 09:39   #2  
Wamr is offline
Wamr
----------------
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
 
1,737 / 858 (32) +++++++
Регистрация: 15.01.2002
Адрес: Москва
Записей в блоге: 7
Поиск
Поиск заданного текста в коде происходит с помощью функции match
А вот, что пишут в хелпе по этой функции

Match
Syntax
int Match (str pattern,str text)

Description
Compares the fixed expression specified by pattern with the text string specified by text.

Return value
The function returns '1' if the pattern is located in the text string.
Otherwise, the function returns '0' (zero).

Examples
Match("sen","Andersen")
returns the value '1'.
Match("sen","Schmidt")
returns the value '0'.
Match("<A?sen","Andersen")
returns the value '1'.

Notes
The system does not differentiate between lower and upper case.
A combination of fixed expressions is in itself a fixed expression.
The following special characters can be used to create the pattern in the fixed expression:

\
A backslash causes a specific character to be matched. For example, "\$" matches a dollar sign.

< or ^
A 'less than' (<) sign or a circumflex (^) at the start of an expression is used to match the start of a line.

> or &
A 'greater than' (>) sign or an ampersand (&) at the end of the expression is used to match the end of a line.

? or .
A question mark (?) or a full stop (.) will match any character (except Enter, new line).

:x
A colon specifies a group of characters to be matched, indicated by the character which follows immediately after.
':a' sets the match to letters
':d' sets the match to numeric characters
':n' sets the match to alphanumeric characters
': ' sets the match to blanks, tabulations and control characters such as Enter (new line).

*
An expression followed by an asterisk requires a match for none or several occurrences of the expression.
For example, "fo*" will locate "f", "fo", "foo" etc.

+
An expression followed by a plus (+) sign requires a match for one or several occurrences of the expression.
For example, "fo+" matches "fo" etc.

-
An expression followed by a minus (-) sign requires a match for no or one occurrence of the expression.
For example, "fo-" matches "f" and "fo".

[]
A string of characters enclosed within square brackets specifies that a match is required for every character in this text, and only for these characters.
For example, "[xyz]" matches "xx" and "zyx" etc.
A string of characters can be specified by two characters separated by '-' (minus).
For example, "[a-z]" matches all letters, whereas "[z-a]" never matches.

[^]
If the first character in a text within square brackets is a circumflex (^) then the expression matches all characters except Enter (new line) and the characters in the string.
For example, "[^xyz]" matches "abc" but not "axb".
Старый 20.11.2002, 11:17   #3  
Andrew Besedin is offline
Andrew Besedin
Участник
 
119 / 15 (1) ++
Регистрация: 25.01.2002
Большое спасибо за ответ!
__________________
Успехов!
Андрей Беседин
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Как создать поле длиной более 255 символов? novic DAX: Программирование 13 18.05.2009 19:58
Поиск в Grid по полю DataMethod Tiruvileijadal' DAX: Программирование 20 14.05.2007 13:37
"поиск" braathe DAX: Программирование 6 24.03.2006 13:07
Поиск по подстроке JohNick DAX: Программирование 8 06.03.2004 22:24
Поиск по полю временной таблицы Swetik DAX: Программирование 2 10.12.2003 11:35
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 18:27.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.