Two suspects have been detained following a stabbing incident near Frankfurt on Tuesday night, which left four people injured.

Police have confirmed that five to seven men attacked members of the public in the city of Hanau, which is near Frankfurt.

None of those injured are thought to be in a life-threatening condition, reports German magazine Focus.

The suspects, both male, are 23 and 29 years old, the police confirmed, though their motive remains unclear.

"We are investigating in all directions," the police said in response to reports that the investigation was now solely focusing on the two suspects arrested.

Law enforcement officials have said there are currently no signs that the stabbings are connected to the killing of nine people by a gunman in February.

A 43-year-old man with racist views shot dead nine people with foreign roots in the town's shisha bars, an attack that sent shockwaves around Germany.