DuCakedHare
unread,Jun 4, 2009, 6:18:00 AM6/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Regex
Hi,
In PHP 5.2.6 : I'm trying to replace any dot character found at the
start of a line with two dots.
Since I cannot find a way to make ^ match newlines within a string, I
am doing:
ereg_replace('(\r|\n)\.','\1..',"first line\r\n.\r\nsecond line");
This however still seems not to match - the dot is never replaced.
I believe the regex is constructed correctly, and even so basic, I
still cannot determine what is wrong...