Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RE_HOST = regexp.MustCompile(`http(s)?://([\w-]+\.)+[\w-]+/?`) RE_HTML = regexp.MustCompile("(?is)<.*?>") RE_A = regexp.MustCompile(`<a(.*?)href="http(.*?)"(.*?)>(.*?)</a>`) RE_HREF = regexp.MustCompile(`href=\"?(.*?)(\"|>|\\s+)`) RE_IMG = regexp.MustCompile("(?is)<img .*?>") RE_SRC = regexp.MustCompile(`src=\"?(.*?)(\"|>|\\s+)`) )
Functions ¶
Types ¶
type CyParser ¶
type CyParser struct { RegParser NormalParser }
type NormalParser ¶
type NormalParser struct { }
func (*NormalParser) GetUrl ¶
func (this *NormalParser) GetUrl(src string) string
Click to show internal directories.
Click to hide internal directories.