Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] regexp - how to exclude a substring?
- From: paul at novitskisoftware.com (Paul Novitski)
- Subject: [Javascript] regexp - how to exclude a substring?
- Date: Mon May 23 03:59:32 2005
Oops:
At 01:37 AM 5/23/2005, I wrote:
>If I were to split on <TAG such as "<div" then I'd have much fewer array
>elements to walk through looking for my desired close-tag:
>
> 0 div id="wrapper">
> 1 div><p>Here's some content</p></div>
> 2 div>Here's some other content</div></div><ul>
> ...
This example should have been:
0 id="wrapper">
1 ><p>Here's some content</p></div>
2 >Here's some other content</div></div><ul>
...
since whatever the array is split with, in this case the string "<div",
will not show up in the array elements.
P.
- Follow-Ups:
- [Javascript] regexp - how to exclude a substring?
- From: Shawn Milo
- [Javascript] regexp - how to exclude a substring?
- References:
- [Javascript] regexp - how to exclude a substring?
- From: Paul Novitski
- [Javascript] regexp - how to exclude a substring?
- From: Shawn Milo
- [Javascript] regexp - how to exclude a substring?
- From: Paul Novitski
- [Javascript] regexp - how to exclude a substring?
- From: Shawn Milo
- [Javascript] regexp - how to exclude a substring?
- From: Paul Novitski
- [Javascript] regexp - how to exclude a substring?
- Prev by Date: [Javascript] regexp - how to exclude a substring?
- Next by Date: [Javascript] regexp - how to exclude a substring?
- Previous by thread: [Javascript] regexp - how to exclude a substring?
- Next by thread: [Javascript] regexp - how to exclude a substring?
- Index(es):