Forum Navigation
how to use Regex?
Posted: 04/14/09 07:07:22Hi, I am not quite sure on how to use the Regex class.
For instance: I have a web-page and want to extract the title. I tried with
auto r = Regex("<title>(.*)<\\/title>"); auto m = r.match(0);but it throws an exception:
tango.text.Regex.RegExpException: RegExp: Unexpected operand at char 20 "" in "<title>(.*)<\/title>"Could someone give me an example? The above is very easy with python and php.