Some general questions
Posted: Mon Aug 27, 2007 4:21 am
I have played around with RegexBuddy and PHP Regular Expression last days.
And have some unanswered questions.
Is there functional a difference between these two expressions?
Witch is preferred?
I assume there is no difference between these PHP Regular Expression?
I found the last two better readable in combination with the / escape.
So far I found these options in PHP:
s Dot matches new line
i Case insensitive
m ^$ match at line break
Are there more options?
Thanks,
Willem
And have some unanswered questions.
Is there functional a difference between these two expressions?
Witch is preferred?
Code: Select all
^(leading|)(start.*)
^(leading)?(start.*)I found the last two better readable in combination with the / escape.
Code: Select all
'\(something.*)\'
'%(something.*)%'
'#(something.*)#'s Dot matches new line
i Case insensitive
m ^$ match at line break
Are there more options?
Thanks,
Willem