When I do
SELECT resrev_meta FROM resourcerevs WHERE resrev_meta LIKE '%attr%';
I get results like this
<attr><fileid>131</fileid></attr>
<attr><fileid>326</fileid><width>360</width><height>640</height></attr>
Question
Is it possible to have a RegEx that would only output the number between <fileid> and </fileid>?
Regex is probably not what your looking for. mysql supports xpath expressions.
This should give you what you need:
http://dev.mysql.com/doc/refman/5.1/en/xml-functions.html#function_extractvalue