Results 1 to 6 of 6
Thread: Regular expression, BB code
Mar 15, 2007, 05:49 #1
- Join Date
- Mar 2006
- 0 Post(s)
- 0 Thread(s)
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!