You are here

function _biblio_get_suffix in Bibliography Module 5

1 call to _biblio_get_suffix()
_biblio_parse_authors in ./biblio.module

File

./biblio.module, line 3252

Code

function _biblio_get_suffix(&$name) {
  $suffix = null;
  if (preg_match("/(.*[^, \\.])[, \\.]+(Jr|Sr|Snr|I|II|III|IV)\\.?\\s*\$/", $name, $match)) {
    $name = $match[1];
    $suffix = $match[2];
  }
  return $suffix;
}