Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] regexp - how to exclude a substring


  • From: alberto.domingo at uah.es (Alberto Domingo)
  • Subject: [Javascript] regexp - how to exclude a substring
  • Date: Mon May 30 06:20:04 2005

//

Therefore as my next step I need to know how to exclude "</div" from the

innerHTML of the div.  I've tried (.*(<\/div){0}) but it doesn't seem to work.



1) How do I say "allow any number of any characters but don't allow this

substring"?

//




May be an stupid idea, but, I would try to first change the substring to 
exclude to a single special character (for example |). Then you can do the 
regxp search excluding that special character.





Alberto Domingo


_________________________________________________________________________
Universidad de Alcal?
Departamento de Bioqu?mica y Biolog?a Molecular
Edificio de Medicina
Campus Universitario
Alcal? de Henares - 28871
Madrid

Tel?fono:       (+34) 91 885 4520
FAX:            (+34) 91 885 4585

alberto.domingo@xxxxxx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050530/7b32d145/attachment.html