use OLE; use Win32::OLE::Const 'Microsoft Word'; my $const=Win32::OLE::Const->Load("Microsoft Word 9.0 Object Library"); $word=GetObject OLE("Word.Application"); $word->Selection->Find->{'MatchWildcards'}=True; $word->Selection->Find->{'Text'}='\*\'; if ($word->Selection->Find->Execute) { ## $prematch=(15 characters only) ## $postmatch=(15 characters only) } #### This is Sample Pre Match Textwww.hotmail.comThis is Sample Post Match Text #### $prematch=' Pre Match Text'; $postmatch='This is Sample ';