hi that's me again : let's suppose i have an exe File its contain is : 7979797979797979*5383EC44B823104000B9000000008A1880* C310881*88*3C00183C10181F937D1000075EBA8F0F031F0A9 F0F0F0F07A0870B39E780873B1F173B0F171E9EF17F0F065 DBA8F00030F0ABB3B3B3B37908A8C5CA30F073B0F073B434 EFC0B34BB3D8F5F0F0F0D9FAF0F0F0A9C81731F0D95BA5 and i want to do a search on it using your great DIRegEx to for this hex value : 5383ec44b823104000b9000000008a1880????88 how could i make this . please just an exemple to have an idea . many thanks 2008/4/29, Delphi Inspiration <delphi@xxxxxxxx>: > > randy domerk wrote: > > >Hi , i want to use your great DIRegEx in searching some hex Values from a > file , i mean > >i have a text file with this line : > > 546869732070726F6772616D > > > >and i want to search for it ( i mean 546869732070726F6772616D ) using > DIRegEx . > > > >is there any suggestion . > > Load the file into memory, then use TDIPerlRegEx with this pattern to > match the hex values: > > [0-9A-Fa-f]+ > > Alternatively, you can use a TDIRegExSearchStream descendant to search > within the file without loading the whole file into memory. > > The demos contain example code which should get you started. > > Ralf > > _______________________________________________ > Delphi Inspiration mailing list > yunqa@xxxxxxxxxxxxx > //www.freelists.org/list/yunqa > > > >