Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Что не так в регулярном выражении! / 7 сообщений из 7, страница 1 из 1
07.10.2011, 09:47:46
    #37472211
bv-alex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Что не так в регулярном выражении!
Нужно чтобы при вводе пароля можно было вводить только латинские буквы и цифры, в приведенном ниже коде проходят и русские буквы тоже. Пробовал проверку и так написать: passwordStrengthRegularExpression="[A-Za-z0-9]", результат тот же. В чем ошибка?

[CSHARP]<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider"
connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true"
requiresQuestionAndAnswer="true" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression="[^а-яА-Я]"
passwordAttemptWindow="10" applicationName="/"/>
</providers>
</membership>[/CSHARP]
...
Рейтинг: 0 / 0
07.10.2011, 13:34:16
    #37472802
Яростный Меч
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Что не так в регулярном выражении!
bv-alexВ чем ошибка?в непрочтении TFM.

Код: plaintext
^[A-Za-z0-9]+$
...
Рейтинг: 0 / 0
08.10.2011, 10:41:41
    #37473851
ValGer
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Что не так в регулярном выражении!
Яростный Мечbv-alexВ чем ошибка?в непрочтении TFM.

Код: plaintext
^[A-Za-z0-9]+$


Расшифруйте, пожалуйста, что такое TFM?
...
Рейтинг: 0 / 0
10.10.2011, 04:03:52
    #37474955
bv-alex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Что не так в регулярном выражении!
Спасибо, ошибка в том что проверял только первый символ. Что такое TFM?
...
Рейтинг: 0 / 0
11.10.2011, 12:51:49
    #37476993
Верблюд
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Что не так в регулярном выражении!
авторTotal Fatty Matter (TFM) is a measure for grading the bathing soaps.
The soaps would be graded on the basis of the fatty matter present in them.
Generally soaps with TFM more than 80% are said to be of Grade 1, and those soaps with TFM more than 65% and below 80% are said to be Grade 2.
For soaps the main ingredients would be the fatty matter extracted either from plants or from animals and fragrance, colour.
Other than these most soaps contain sodium and potassium salts as the key ingredients.
So, among these that gives out the frangrance and colour if the fatty matter is more the soap would be soft towards skin.
The formula for soap is:
Fatty acid (oil) + Base (lye) = "A Salt" (soap)
...
Рейтинг: 0 / 0
21.11.2011, 21:13:43
    #37537620
Techman
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Что не так в регулярном выражении!
ВерблюдавторTotal Fatty Matter (TFM) is a measure for grading the bathing soaps.
The soaps would be graded on the basis of the fatty matter present in them.
Generally soaps with TFM more than 80% are said to be of Grade 1, and those soaps with TFM more than 65% and below 80% are said to be Grade 2.
For soaps the main ingredients would be the fatty matter extracted either from plants or from animals and fragrance, colour.
Other than these most soaps contain sodium and potassium salts as the key ingredients.
So, among these that gives out the frangrance and colour if the fatty matter is more the soap would be soft towards skin.
The formula for soap is:
Fatty acid (oil) + Base (lye) = "A Salt" (soap)

Смешно! Удачи!
...
Рейтинг: 0 / 0
22.11.2011, 18:54:23
    #37539190
Babochka
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Что не так в регулярном выражении!
попробуйте использовать валидаторы, это удобно
...
Рейтинг: 0 / 0
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Что не так в регулярном выражении! / 7 сообщений из 7, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]