Does \n come under \s of pcre regex??

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Does \n come under \s of pcre regex??

Post by dude81 »

I've a small doubt. Does \n come under \s of pcre regex in PHP??. I said no, but few people argue it is?? Kindly clarify
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Yes. All whitespace comes under \s.
Post Reply