@kavo said in Помогите с проблемой генерации хэша Authorization: SAPISIDHASH:
У тебя такое ощущение что каждый раз страница загружается по новой перед следующим твоим пост запросом
Нет, но там все работает в iFrame. Может это как то влияет?
Други приветствую! Помогите с регуляркой, пробую через BAS-овский конструктор, нифига не работают у меня его регулярки :( , надо вытянуть из ответа сервера то что между - The following address(es) failed: и ------ This is a copy of the message, including all the headers. ------ хотя предпочтительнее сразу выдернуть email адреса было бы...
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
sldutchak@rambler.ru
SMTP error from remote mail server after RCPT TO:<sldutchak@rambler.ru>:
host inmx.rambler.ru [81.19.78.65]: 540 5.7.1 <sldutchak@rambler.ru>:
recipient address rejected: Blocked
natali-sirena@rambler.ru
SMTP error from remote mail server after RCPT TO:<natali-sirena@rambler.ru>:
host inmx.rambler.ru [81.19.78.65]: 540 5.7.1 <natali-sirena@rambler.ru>:
recipient address rejected: Blocked
stepa3504@rambler.ru
SMTP error from remote mail server after RCPT TO:<stepa3504@rambler.ru>:
host inmx.rambler.ru [81.19.78.65]: 540 5.7.1 <stepa3504@rambler.ru>:
recipient address rejected: Blocked
------ This is a copy of the message, including all the headers. ------
@Fox, эти регулярки я знаю, но простыня из которой парсить надо гораздо больше и с ненужными email-ми, суть в том что надо выдрать именно то что между:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
и
------ This is a copy of the message, including all the headers. ------
Составляю регулярку в конструкторе
This\ is\ a\ permanent\ error\.\ The\ following\ address\(es\)\ failed:\ \ (.+?)\-\-\-\-\-\-\ This\ is\ a\ copy\ of\ the\ message\,\ including\ all\ the\ headers\.\ \-\-\-\-\-\-
но не пашет она :(
А регулярка из зеннопостера
(?<=The\ following\ address\(es\)\ failed:)[\w\W]*?(?=------\ This\ is\ a\ copy\ of\ the\ message,\ including\ all\ the\ headers\.\ ------)
сразу отлавливавает на ура...
@bigorat Непонятно зачем пробелы экранировать..
Попробуй так, будешь получать всё, как ты и просил.
A message that you sent could not be delivered to one or more of its
recipients\. This is a permanent error\. The following address\(es\) failed:([\s\S]*)------ This is a copy of the message, including all the headers\. ------
А из полученных данных уже можно забирать мыло.
(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})
Можно конечно сделать одну регулярку, но надёжнее в несколько этапов.
@Fox said in Помогите с регуляркой:
Если убрать из твоей регулярки экранирование пробелов, то она тоже будет работать:
Нет, BAS ошибку бьет
SyntaxError: Invalid regular expression: unrecognized character after (? Номер строки:2 Во время выполнения скрипта { _sa(516294413); VAR_STRING_MATCHES = Boolean((VAR_SAVED_TEXT_PAGE).match(new RegExp("(?\u003c=The following address\u005c(es\u005c) failed:)[\u005cw\u005cW]*?(?=------ This is a copy of the message, including all the headers\u005c. ------)"))) section_start("test", 441185482,function(){ })}
@Fox said in Помогите с регуляркой:
Дай по больше исходного кода, накидаю скрипт.
Да вот файл с сохраненным ответом, надо из него выпарсить между определенными частями email адреса
Млин, форум не дает файл воткнуть, на ЯД кинул https://yadi.sk/i/6hV9JF-b3MT8dm