zattz
asked on
Remove all sentences shorter than X words
Hi
I'm looking for some code that will remove all sentences shorter than X words from a memo.
Thanks
I'm looking for some code that will remove all sentences shorter than X words from a memo.
Thanks
ASKER
Hi,
I'm not sure what your demo is doing, but it's not removing the sentences shorter than X words.
Top memo:
This sentence has five words. This sentence has six six words. This has three. This has four words.
Press button.
Bottom memo:
entence entence words. three.
I'm not sure what your demo is doing, but it's not removing the sentences shorter than X words.
Top memo:
This sentence has five words. This sentence has six six words. This has three. This has four words.
Press button.
Bottom memo:
entence entence words. three.
The top is the original text, bottom is the one with the words smaller than x removed and the left is
just a refference of what has been deleted.
I pasted this at the top text :
-------------------------- ---------- ---------- --------
I'm looking for some code that will remove all sentences shorter than X words from a memo.
-------------------------- ---------- ---------- --------
and wrote to cut everything smaller than 5... Result :
-------------------------- ---------- ---------- --------
looking remove sentences shorter
-------------------------- ---------- ---------- --------
just a refference of what has been deleted.
I pasted this at the top text :
--------------------------
I'm looking for some code that will remove all sentences shorter than X words from a memo.
--------------------------
and wrote to cut everything smaller than 5... Result :
--------------------------
looking remove sentences shorter
--------------------------
Sorry zattz...
I just saw sentences not words... sorry i misread your question...
I just saw sentences not words... sorry i misread your question...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:/ Argx...
i was about to post the same code in a demo mikelittlewood..
:)
i was about to post the same code in a demo mikelittlewood..
:)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.geocities.com/kalatz_gr_fisher/TheFiles/Censor.zip
Didnt test it thoroughly... Its just to give you an idea :)
Hope this helps.