I am new in semigroup theory and I have an problem related to quasi ideals. I am trying to solve the following problem
Problem: For a semigroup $S$, the following are equivalent
$S$ is regular
$A=ASA$ for every quasi ideal $A$
My approach for $1\implies 2$
Consider $a\in A$ since $S$ is regular so there exist $x\in S$ such that $a=axa$ so $A\subseteq ASA$
But I am not able to prove $ASA\subseteq A$
Any help in this regard
EDIT. According to Clifford and Preston (The algebraic theory of semigroups, Volume I, p. 85), a subset $A$ of $S$ is a quasi-ideal if $AS \cap SA \subseteq A$.