in reply to insert html tags

what you did is right but could i know how to do the same using regular expressions for the same logic(i.e., append two line of tags after every ul tag in a page)