D
Dan
Hi everybody,
I have a special problem as the following:
$sentence="a hard problem";
I want to build a regular expression for searching there is
no word "hard" in the above sentence.
Usually, we could try $sentence !~/RegEx/ for this problem.
But, I am not allowed to use "!~", I can only use "=~" for this
problem, which means that /RegEx/ is a pattern for searching no
"hard" in a sentence.
Is there anyone who konws the solution of this problem?
Thanks in advance
Dan
I have a special problem as the following:
$sentence="a hard problem";
I want to build a regular expression for searching there is
no word "hard" in the above sentence.
Usually, we could try $sentence !~/RegEx/ for this problem.
But, I am not allowed to use "!~", I can only use "=~" for this
problem, which means that /RegEx/ is a pattern for searching no
"hard" in a sentence.
Is there anyone who konws the solution of this problem?
Thanks in advance
Dan