why this Regex doesn't work in zennoposter

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
i have a text and i want to create line breaks after specific character numbers (for example after 1350 characters)
in notepad++ i use this:
Capture.JPG

and it perfectly does what i want to.
but in zennoposter when i use that like this:
Capture1.JPG


it does nothing? why? how can i do the same with zennoposter?
 
Регистрация
10.01.2019
Сообщения
32
Благодарностей
11
Баллы
8
Its work but not for "All" =(
This bug is here for last 2 year
 

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
so what can i do? maybe a C# code for this one?
how should i create a line break after a specific character count? i don't know how to write a macro :(
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Hi. I'm not strong to answer about regex, but there are piece of C# what will do the work :-)
Cheers
 

Вложения

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
someone can edit lokiys's file for me? as i said before i wanna break lines after 1350 characters and this is my variable:
{-Variable.Result-}
i really don't know how edit C# files to what i need.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Hi. I have updated template to insert new line, before it inserted space.

In template You have three variables:
input = string You want to split
newString = output variable, what will output split string.
whereToInsert = at what place linebreak is needed.

Not sure how to explain more exact.
Good luck
 

Вложения

  • Спасибо
Реакции: sonatine

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
Hi. I have updated template to insert new line, before it inserted space.

In template You have three variables:
input = string You want to split
newString = output variable, what will output split string.
whereToInsert = at what place linebreak is needed.

Not sure how to explain more exact.
Good luck
thank you very much.
you are the best.
but i have a tiny problem with that. it inserts a new line but just once. i mean i want a new line after until text is finished.
what can i do? i can get the first line and delete that and run the code again but i know there must be a better solution.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
thank you very much.
you are the best.
but i have a tiny problem with that. it inserts a new line but just once. i mean i want a new line after until text is finished.
what can i do? i can get the first line and delete that and run the code again but i know there must be a better solution.
Not sure what You mean. Your request was to insert new line after x characters.
This is what this code do.
 
  • Спасибо
Реакции: sonatine

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
Not sure what You mean. Your request was to insert new line after x characters.
This is what this code do.
yeap, it really does! but let me explain more, suppose i have a text with 6000 characters. i wanna insert a line after 1500 each characters, so i would have 4 lines, each one contains 1500 characters. u see?
but your code just insert just one new line. i want it to continue inserting new lines until no more characters are left.
sorry for my bad english, i tried to explain clearly.
 
Последнее редактирование:

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
526
Благодарностей
112
Баллы
43
I hope this will help you....
 

Вложения

  • Спасибо
Реакции: sonatine

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18

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