[Solved] how to clean detail mass on regex January 14, 2023 by Kirat You can use the following to match: .*?\s*\|\s*(.*?)\s*\|.* And replace with $1 See DEMO 0 solved how to clean detail mass on regex