faqts : Computers : Programming : Languages : PHP : Common Problems : Regular Expressions

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

How do I remove the words "A","The","An" from the beginning of title.

Dec 1st, 2003 12:45
Jakub Vrana, Bo Vargas,


<?php
echo ereg_replace("^(A|The|An) +", "", $title);
?>