Q:

Find exact word between two HTML tags

I need to find, if it is possible, the right regexp (Perl syntax, since I'm using Sublime Text) to find the string ' and ' inside two span tags.
The line look like this one:
<span class="CEURAUTHORS">Xing Xu, Atsushi Shimada and Rin-Ichiro Taniguchi</span>

I've tried 
(?<=CEURAUTHORS">)\sand\s(?=.*</span>)

but it's not what I want.
Any idea?

A:

Assuming no nesting of tags, here are three options depending on your regex flavor.
Option 1: Capture Group (works everywhere)
<span[^>]*>(?:(?!</span).)*( and )[^<>]*</span>

The match is in Group 1
Option 2: \K in Perl, PCRE (PHP, R...), Ruby 2+
<span[^>]*>(?:(?!</span).)*\K and (?=[^<>]*</span>)

Option 3: Infinite Lookbehind (.NET, regex module for Python)
(?<=<span[^>]*>(?:(?!</span).)*) and (?=[^<>]*</span>)

