Thanks. This is an example of a real URL:
[http://www.cnn-english.com/index.htm CNN in english]
We could say the parsing rules are like this:
- begins with [http
- From the first "[" , follow up all characters until the first Space is found, make that into one group ($1)
- The rest of the Characters (including spaces) are to be grouped into $2 until we hit a ]
This is always the case, i.e. - the URL ends when the first Space is found. The Red text ends after that when the first ] is found.
I hope that helps. So the real example would be:
|
[http://www.cnn-english.com/index.html CNN in english]
| Description line one.
| Description line two.
| Description line three.
|-
To be formatted to:
{{New site|Logo-of-CNN in english.gif|CNN in english|http://www.cnn-english.com/index.htm|Description line two. Description line three.}}
URL's can also end in / but they will always be one string, which starts from "http" and terminated by the first space after the 'http'.