Answer
$x^2-x+xy-y=(x-1)(x+y)$
Work Step by Step
Regroup to have:
$=(x^2-x)+(xy-y)$
Factor out the GCF $x$ in the first group and $y$ in the second group to have:
$=x(x-1)+y(x-1)$
Factor out the GCF $(x-1)$ to have:
$=(x-1)(x+y)$