Alex_Qwerty
Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Код: function testreg(data,regStr,msg) { local ex1 = regexp(regStr); local res1 = ex1.capture(data, 0); if (res1 != null) {print(msg+data.slice(res1[1].begin, res1[1].end)+"\r\n")} } nm.doGet("http://image-uploader.googlecode.com/svn/trunk/Source/Core/Upload/ScriptUploadEngine.cpp"); local data = nm.responseBody(); print(data); testreg(data, "(#include <iostream>)", "(#include <iostream>): ") testreg(data, "(ErrorMessage\\(ei\\);)", "(ErrorMessage(ei);): ") | Zenden Image Uploader console utility v0.1 (based on IU v1.2.7) Uploading file 't1.png' to server test Squirrel /* Image Uploader - program for uploading images/files to Internet Copyright (C) 2007-2011 ZendeN <zenden2k@gmail.com> HomePage: http://zenden.ws/imageuploader This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This module contains uploading engine which uses SqPlus binding library for executing Squirrel scripts */ #include "ScriptUploadEngine.h" #include <stdarg.h> #include <i? '(#include <iostream>): #include <iostream> (ErrorMessage(ei);): ErrorMessage(ei); --------------------- Result: | Всего записей: 2289 | Зарегистр. 09-09-2006 | Отправлено: 09:16 06-07-2011 | Исправлено: Alex_Qwerty, 14:39 08-07-2011 |
|