I'm new to xpath and am searching tutorials but can't seem to figure this out, I want to do a regex type of thing where I would select something based on it matching 'next', I wrote it below using regex syntax but am not sure how to do this in xpath, sorry for the newbie question but I am seemingly not able to find out how to do this.. thanks
string = 'blah_blah next '
xpath="//a[contains(text(),'.*?next.*')]");