Всем привет!
Есть некий текст из которого нужно вытащить первый абзац (содержание текста смешанное цифры, символы). Структура и формат текста оригинала такие же:
Эта конструкция вытаскивает только последнюю строчку абзаца(
Есть некий текст из которого нужно вытащить первый абзац (содержание текста смешанное цифры, символы). Структура и формат текста оригинала такие же:
AutoIt v3 is a freeware BASIC-like scripting language designed for automating the
Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys).
AutoIt is also very small, self-contained and will run on all versions of
Windows out-of-the-box with no annoying "runtimes"
required!
Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys).
AutoIt is also very small, self-contained and will run on all versions of
Windows out-of-the-box with no annoying "runtimes"
required!
Код:
#include <Array.au3>
$file = FileRead(@ScriptDir & '\message.txt')
$1 = StringRegExp($file,'(.*)\s\s\s',3)
_ArrayDisplay($1)