What is the major reaction solvent and how much DMF is present? The best way to remove DMF is biphasic extraction since it is not particularly volatile and isn't readily ionizable. If the main reaction solvent is hydrophobic, then you should be able to extract DMF in water, particularly if you can add more hydrocarbons. If the main reaction solvent is hydroscopic, then you have to look towards low polarity solvents that won't mix. Hansen solubility parameters are a good way to find appropriate solvents (CRC Handbook of Solubility and other Cohesive Parameters).
Luke V Schneider Thanks for your response, main solvent is DMF and reactant is a pentacene. i tried brine water , EA and LiCl wash, but DMF is shit .!!!
You may be better off extracting the pentacene. If you have a structure, you can use group contribution methods to select a solvent for the extraction with Hansen parameters. The solvent choice should be far from DMF and closer to the pentacene than DMF. The CRC Handbook has all the details for the calculations.