Hi,
startTag = "<bug>" endTag = "</bug>" process = unlines . specialTakeWhile (f endTag) . dropWhile (f startTag) . lines where f t x = not (x =~ t) specialTakeWhile :: (a -> Bool) -> [a] -> [a] specialTakeWhile ff [] = [] specialTakeWhile ff (x:xs) = if ff x then x:(specialTakeWhile ff xs) else [x]
It'll be great if I could get some feedback on this.
Regards,
Kashyap