Page 1 of 1

How to split up text

Posted: Sat Jan 22, 2005 4:58 pm
by f000ker
for example i load in a ebook and it takes it and looks for a " " or space
and then sends the word to the next line for example

This is just a example of the next.
this
is
just
a
example
of
the
next.

and so on. :(

Posted: Sat Jan 22, 2005 7:35 pm
by Bob Hansen
Search for space

Replace with \n

Posted: Mon Jan 24, 2005 1:57 am
by f000ker
that works good is there away to do it like every 5th space?
Bob Hansen wrote:Search for space

Replace with \n

Posted: Mon Jan 24, 2005 3:16 am
by Bob Hansen
Search for: (([^ ]* ){5})
Replace with \1\n

Starting with this:
one two three four five six seven eight nine ten eleven twelve

Replace All results with this:
one two three four five
six seven eight nine ten
eleven twelve


Rugular Expression with POSIX on.

Posted: Mon Jan 24, 2005 3:38 am
by f000ker
i hit f8 and top box pasted (([^ ]* ){5})

bottom box pasted \1\n

it tells me cant find expression i have it checked under the prefencres editor posix expression checked ?

what i doing wrong

Posted: Mon Jan 24, 2005 4:16 am
by Bob Hansen
Put a checkmark in Regular Expression in the Search/Replace window

Posted: Thu Jan 27, 2005 10:43 pm
by f000ker
thanks that worked :)