|
-when you don't want what's inside the bracket to enter $1 you make the bracket (?:)
-when you want something that doesn't have something ensuing you type:
$name =~ s/something(?!thismaynotfollow)//gi;
but what if you want whats in the (?!) bracket also to not enter $1...
how do you do that?
I've tried (?!:something) but that doesn't seem to work.
thanks in advance,
|
|
|
|
|
|
|
// |