Or:
class="$(echo $f | sed "s/^actions\/\([[:alnum:]]\{0,\}\)\.hh/\1/g")" id="$(echo $foo | sed "s/PEEKABOT_REGISTER_SERIALIZABLE[[:space:]]\{1,\}//g")"
As far as I can tell by reading the man pages for BSD sed and "re_format", this should be portable.
Or:
class="$(echo $f | sed "s/^actions\ /\([[:alnum: ]]\{0,\ }\)\.hh/ \1/g")" REGISTER_ SERIALIZABLE[ [:space: ]]\{1,\ }//g")"
id="$(echo $foo | sed "s/PEEKABOT_
As far as I can tell by reading the man pages for BSD sed and "re_format", this should be portable.