int b_docf = tmpallstr.indexof( dfstrb );
if ( b_docf > 0 )
{
int e_docf = tmpallstr.indexof( dfstre,b_docf + dfstrb.length );
if ( e_docf > 0 && e_docf > b_docf && e_docf - b_docf < 20 )
{
docfromstr = tmpallstr.substring( b_docf + dfstrb.length, e_docf - b_docf - dfstrb.length );
}
}