<div dir="ltr">Hello all,<div><br></div><div>I suspect this is a pretty basic regex question.  I have quotation marks at the beginning of some of my titles, so I modified the TitleNoArticle function from the CustomPagelistSortOrderFunctions Cookbook page:</div><div><br></div><div>'preg_replace("/^ *((?:The|An?) |\")/i", "", (@$page["title"] ? $page["title"] : $AsSpacedFunction($name)), 1)';</div><div><br></div><div>This works great for discarding the leading quotation marks, but I run into a problem when I have <i>both</i> a leading quotation mark and an article (the/a/an) at the beginning of my title, in which case the page gets alphabetized under the article.  I would be really grateful to anyone who could show me how to modify the function to account for this.</div><div><br></div><div>Regards,</div><div>Jake</div><div><div></div></div></div>