NEED REGEX HELP

pascoyegbe

Client
Регистрация
29.08.2011
Сообщения
9
Благодарностей
0
Баллы
1
Need help passing out the 2nd 4th and sixth characters out of a returned captcha phrase
i am attaching the captcha sample when i send it to a captcha service they will return all the six character but what i realy need is the charater in black, so i was thinking maybe i can have the result sent through a regex that will take out the red character which is always the 2nd 4th and sixth and pass that as captcha
will appreciate if our in house regex expert can help me out on this

captcha.jpg what i need m07
captcha 2.jpg what i need 6x7
captcha 3.jpg what i need t7n
captcha 4.jpg what i need 1u6

want to pass out the characters in red and fill in the remainder - xters in black as captcha
any help writing the regex will be highly apreciated
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
You can do this via JS and macro execution of JS:
[xcode=JavaScript]
var result = "captcha";
var result=(result.split("", ));
var result=result[0]+result[2]+result[4];
[/code]
 

pascoyegbe

Client
Регистрация
29.08.2011
Сообщения
9
Благодарностей
0
Баллы
1

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