Help with difficult parsing function...

  • Автор темы Автор темы nau310d
  • Дата начала Дата начала

nau310d

Client
Регистрация
17.05.2011
Сообщения
87
Реакции
1
Баллы
0
Hi..

So I have this text, for example:

Hello. Hi. How are you. Good. Bad. Noon. Bye.

I want to add <br> in the beginning of Hello, and </br><br> after every second "." and </br> in the end. I haven't found out how to do it.

So it would look like this:

<br>Hello. Hi.</br><br>How are you. Good.</br><br>Bad. Noon.</br><br>Bye.</br>

Can somebody please help me?

I guess it required some advanced parsing, or maybe it's not possible to do this with zenno...
Thank you
 
Actually yes you can do this with zennoposter, or more specifically, regular expressions (regex). Regex will permit you to do a whole ton of things that are truly amazying and I do find the zennoposter supports it pretty darn good.

I've done tutorials on learning regex with ubot studio, but the same technique applies to zennoposter. Sorry, I do intend to create tuts for zennoposter and regex, but I'm still getting my head around zp. Take a peek at my site - it may help: http://www.ubotjunkie.com/regular-expressions-made-easy-in-ubot-studio/

Cheers,

Frank
 

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