vb.net - Regex match beginning of a line and special end -
how can match beginning of line keyword "dog" end equal sign have not working
private sub button1_click(sender object, e eventargs) handles button1.click dim istring string = "cats=123" & vbcrlf & "dog=456" dim q1 = system.text.regularexpressions.regex.match(istring, "^dog=") if q1.success debug.print("found") else debug.print("not found") end if end sub
you had ok, need option treat input multi line:
dim q1 = system.text.regularexpressions.regex.match(istring, "^dog=", regexoptions.multiline)
Comments
Post a Comment