irule to change VS IP to different source ip

Any examples of an irule that can be used to change the source ip address of VS

What are you trying to achieve ? With the assumption that you are trying to change outbound traffic flow source IP address, I would suggest looking into SNAT.