codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  A bracket with both !? and ?:  mimir at 11:29 on Monday, January 21, 2008
 

-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,









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: How to open a MS Word document from Javascript
•  Re: Help: Trouble with z-Index and SELECT lists
•  Re: From variable to function?
•  Re: put entire hash into a data structure.
•  302 Error, on a Web Bot
•  A bracket with both !? and ?:
•  Re: Learning Perl
•  Re: adding a single \ to text
•  Re: problem with STDIN func.


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008