Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] regexp help: matching selectors
- From: paul at novitskisoftware.com (Paul Novitski)
- Subject: [Javascript] regexp help: matching selectors
- Date: Wed Jun 29 16:22:40 2005
I'm developing regular expressions that will match CSS-style selectors. Here's my first stumbler: /html( \w+)* div/ (Intended to mean: the word "html" followed by zero-or-many instances of [a space followed by one-or-many word characters] followed by a space and then the word "div") I want this to match with: html div html body div html body div#logo etc. Can you explain to me why it's not working? Thanks, Paul
- Follow-Ups:
- [Javascript] regexp help: matching selectors
- From: Shawn Milo
- [Javascript] regexp help: matching selectors
- From: Hassan Schroeder
- [Javascript] regexp help: matching selectors
- Prev by Date: [Javascript] Controlling Page Scroll Position
- Next by Date: [Javascript] regexp help: matching selectors
- Previous by thread: [Javascript] Regular Expression example
- Next by thread: [Javascript] regexp help: matching selectors
- Index(es):