Page 1 of 1

Quick Question

Posted: Tue Oct 18, 2005 3:17 pm
by Ree
What does * apply to - '.' only or the whole '<br \/>.'?

Code: Select all

$regex = '/<br \/>.*/';

Posted: Tue Oct 18, 2005 3:29 pm
by Chris Corbyn
It applies to the character that precedes it. So in this case it's the dot yes ;)

Posted: Tue Oct 18, 2005 3:33 pm
by Ree
Thanks, clear now.

Posted: Tue Oct 18, 2005 3:37 pm
by Chris Corbyn
No problem.

If you want it to apply to the <br /> too then use parentheses to surround the bits you need to group together ;)