- Регистрация
- 24.08.2012
- Сообщения
- 44
- Благодарностей
- 8
- Баллы
- 8
Hi,
I'm creating a template to use to post articles.
I have a folder with spun articles and get a random spun article to use.
The first line of the article is the title. Then 2 line breaks followed by article body.
I can use regex to get the article body ok.
The regex I use to get the article title is ^.*
This only works some times but not always. The debugger says regex ok, but it doesn't always get a value.
Is there a better regex to use to get the first line of an article?
Thanks for help!
I'm creating a template to use to post articles.
I have a folder with spun articles and get a random spun article to use.
The first line of the article is the title. Then 2 line breaks followed by article body.
I can use regex to get the article body ok.
The regex I use to get the article title is ^.*
This only works some times but not always. The debugger says regex ok, but it doesn't always get a value.
Is there a better regex to use to get the first line of an article?
Thanks for help!