cool thanks!
  -----Original Message-----
  From: Robert Munn [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 02, 2004 4:37 PM
  To: CF-Talk
  Subject: RE: list search

  I also found a function called ListCountMultiple() in cflib.org that
  matches a given substring in a list and returns the count of matches. Here
  is the url:

  http://www.cflib.org/udf.cfm?ID=922

  >> I think both listfind() and listcontains() will not work for our needs.
  >>
  >> we are looking to match a string like "something_"  which could match
to
  >> "something_1" or "something_old"....
  >
  > There is nothing built-in, but you could create a function to do this
  > readily enough. Call it REListFindMultiple(). Something like this:
  >
  > REListFindMultiple(reg_expr,tlist,delims)
  > {
  >  var results="";
  >  for(i=1; i<=listlen(tlist,delims); i++){
  >      expr_location = REFind(reg_expr,listgetat(tlist,i,delims));
  >      if(expr_location)
  >          listappend(results,expr_location);
  >     }
  >
  > return results;
  > }
  >
  >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to