What is wrong with this regex?

osho

Client
Регистрация
20.03.2012
Сообщения
125
Благодарностей
5
Баллы
18
Код:
http://www\.codeproject\.com/script/Membership/ConfirmEmail\.aspx\?tg=[0-9]*
When this is run in debug, I receive: Text parsing by regular expression Result: nothing was found.

If this is run in the regex builder, it extracts the link just fine. ??

 

osho

Client
Регистрация
20.03.2012
Сообщения
125
Благодарностей
5
Баллы
18
A portion of the email:

<h2> Thank you for joining CodeProject! </ H2>

<p> <b style='color:red'> Please confirm your Email by <A href = " http://www.codeproject.com/script/Membership/ConfirmEmail.aspx?tg=1209849307705013 "> clicking here </ a>. </ B> </ p>

<p> Alternatively, paste http://www.codeproject.com/script/Membership/ConfirmEmail.aspx?tg=1209849307705013 into your browser address window to confirm
that this is your email address. </ P>

<p> In order to reduce spam we require that all email addresses be confirmed
before we send you newsletters. </ P>

<h2> To log on </ h2>

<p> To Log on to visit the homepage CodeProject ( http://www.codeproject.com) and enter your Email
address and password in the login area at the top left of the homepage. </ P>

<p> To change your details, including your newsletter subscription, email address
and password simply login and then click 'My Settings' at the top right hand
corner of the homepage. </ P>

<p> Your Membership WAS Initiated from the IP address "". If you Were not the
person who signed up using this email address, or you do not wish to be part of the
CodeProject community then you can remove your account by <a href=" http://www.codeproject.com/script/Membership/Unsubscribe.aspx?tg=1209849307705013&l=0 ">clicking
here </ A> (or cut and paste this address into your browser: http://www.codeproject.com/script/Membership/Unsubscribe.aspx?tg=1209849307705013&l=0) . </ P>
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
682
Баллы
113
Код:
http://www\.codeproject\.com/script/Membership/ConfirmEmail\.aspx\?tg=\d+
 

osho

Client
Регистрация
20.03.2012
Сообщения
125
Благодарностей
5
Баллы
18
Thanks for the reply - even with that regex, it still is leaving {-Variable.confirmationurl-} empty...
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Example of recorded mail action + login and password for mail which already has this email in inbox is needed.
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
682
Баллы
113
Код:
http://www\.codeproject\.com/script/Membership/ConfirmEmail.*(?=\ ">)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)