TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: `JAMES C. SEWELL`
date: 1997-09-06 01:28:00
subject: Re: find lines 80 char

From: "James C. Sewell" 
At 09:28 AM 9/5/97 MET Hans de Wit, whom God loves, said:
>>
>>     lFind(format("":80:".")+"#","ixvg")
>
>- I really don't understand the format. It is like magic. Could 
>somebody explain why it works. The find options i do understand.
lFind's format is:
    integer lFind(STRING find_str, STRING opt_string)
the entire first part is the find_str, namely:
    format("":80:".")+"#"
Format as written (the help feature gives some examples) will create a
string of 80 dots '.' and then a '#' is put on the end.  When using regular
expressions (the 'x' in the options of lfind) in a find or lfind this will
match any line with 80 "anythings" (the dot matches any character) and the
end of line.  The end of line '#' is important because a line that is 83
characters long will have 3 distinct sets of 80-character strings... this
just forces it to look at the last one of each line.
  Hope it helps.
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.