Regular expression, BB code
I'm trying to make something like a wysiwyg-editor, and I'm using JS reg exp to preview the stuff that you type in in a div.
I've managed to fix the easy parts, links a bold text, but I can't seem to get unordered lists to work. I want the syntax to be:
* First item
And it's working, as long as I only have one list item. Can anyone help me with som regexp for this? And I'd really like to learn regexp, so explainations and links to further reading is appreciated!