GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing javascript.info — Insert After Head back to the lesson Insert After HeadWe have a string with an HTML Document. Write a regular expression that inserts For instance:
After that the value of
In order to insert after the In this task, we don’t need to modify the Here’s how we can do it: In the replacement string An alternative is to use lookbehind: As you can see, there’s only lookbehind part in this regexp. It works like this:
The tag So it replaces the “empty line”, preceded by P.S. Regexp flags, such as |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |