The position of the specified substring +1 of where it is in the target string. That position is used as input to the next call as the beginning of the search for the next occurrance on the target string. Zero return means that there were no more occurances of the substring in the target string.
Most folks just use the two argument $LENGTH, and $PIECE to pull strings apart. ----- Original Message ----- From: "Kevin Toppenberg" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, September 05, 2005 9:16 AM Subject: Re: [Hardhats-members] $FIND question So it returns position+1 of the END of the string? Thanks for the info. Kevin On 9/5/05, Maury Pepper <[EMAIL PROTECTED]> wrote: > $FIND(str1,str2,n) returns the position+1 of str2 in str1 starting at position n. > W $FIND("ABCDEFG","BCD") > 5 > W $FIND("ABCDEFG","BCD",3) > 0 > S HEX="B" W $FIND("0123456789ABCDEF",HEX)-2 > 11 > > > ----- Original Message ----- > From: "Kevin Toppenberg" > Sent: Monday, September 05, 2005 9:09 AM > Subject: [Hardhats-members] $FIND question > > > > Can someone explain the syntax of $FIND to me. > > > > I have been looking a Ed De Moel's reference, but in this case I don't > > understand what I am seeing. > > > > Thanks > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Hardhats-members mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/hardhats-members > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Hardhats-members mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hardhats-members ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Hardhats-members mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hardhats-members
