Getting Content frm Multiple Txt Files

paromi

Client
Регистрация
10.12.2012
Сообщения
18
Благодарностей
1
Баллы
0
hello,
i have a directory with some text files :
EX: text1.txt , text2.txt

In the text files i have
Title : this is my title
Content: this is content

i have put a
regex: (?<=Title:\ )[\w\W]*(?=Content:-)

and in the regex edditor i manage to substract only the title.

But if i do it in the project.
I dont seem to to be able to substract that tile.

http://imgplate.com/upload/big/2012/12/10/50c645f83a3e1.PNG


In the Word Processing.
i would like to have an option to search for a Regex and put it in a variable directly. (like replace). i dont see why a replace can do this and not a simple search is there.
The next best thing is to add it to a list and then get it from there.

The Data option would have been good to scrap that content, but it works only for webpages and not files from a directory.

any tought on how to sucessfuly gather specific data from inside multiple articles ? ( i want to use that data afterwards to post in on websites)
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
  • Спасибо
Реакции: Mankush

paromi

Client
Регистрация
10.12.2012
Сообщения
18
Благодарностей
1
Баллы
0
thanks bigcajones, i will try it.
 

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