Friday, 16 August 2013

What do you mean by this regex in simple term?

What do you mean by this regex in simple term?

/^[^#]*[^\s#][^#]*#include/.test(str)
this will test if '#include' has 1 or more none-whitespace char before it
and return true. I dont really get why it is the solution

No comments:

Post a Comment