Hello everyone.I will try to explain my question clealry. now I have use writeini written a ini.but when I try to output the contains of ini file I got a problem.

writeini -n file.ini %string1 %string2 %string3

now the ini stored like this
Code:
 
[%string1]
%string2=%string3

%string1,%string2 and %string3 r not exactly the same everytime.
now I want to match if another var called %string4 isin %string2
and msg out to a channel as " %string4 %string1 %string3 ".But I can't use $readini(file.ini, %string1, %string2) to match since what I require to match is in ITEM but not VALUE.

and for $read I use

Code:
  
 if ( %string4 isin $read(file.ini) ) { 
    msg #channel  something
    HALT
 }


this does work sometimes. because it reads random line.So it doesn't work all the time.Is there any possible way to read the full contains of a text file,and return the string I searched for? Anyway I has tried
Code:
$read(file.ini, w, *string*)
 

but it return only the first line it found. is there any possible way to return all the line it found? also in read seems we can't use variables such as $read(file.ini, w, *%string1*)
and I noticed there is a "r" for $read for regex match. how to use it? can anyone of u gimme a example?
Thanks for your reading.