how can I acheive excel Find() in postgress : How can I find the position of a string starting from a specified index in postgresql-9.3+ 

Example

    find('ranranran','an',1) should outputs 2
    find('ranranran','an',3)  => 5 
    find('ranranran','an',6)  => 8

Thanks