You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-user@jakarta.apache.org by h....@usu.de on 2003/02/25 10:05:27 UTC
Problem with start of line "^" RE and subst
Hi!
I have the problem that I receive urls without "http://" part, so I used
"^" as match and "http://" as replacement in RE.subst
No that I call myre.subst("test.me","http://") it comes out as
"http://est.me" and the "t" is missing.
What's wrong?
Harry
---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-user-help@jakarta.apache.org
RE: Problem with start of line "^" RE and subst
Posted by Juan José Evangelista <ju...@juanjoe.com>.
If you want the string "//" you need to put "////"
Cuando el carro se ha roto mucho os dirán por donde se debía pasar. -
Proverbio Turco
____________________________________
Desde Quilmes, Argentina
Juan José Evangelista
www.juanjoe.com
yahoo messenger: juanjoe33
ICQ: 25094649
MSN: juanjoe@ciudad.com.ar
AIM: juanjoe68
____________________________________
> -----Original Message-----
> From: h.dietz@usu.de [mailto:h.dietz@usu.de]
> Sent: Tuesday, February 25, 2003 06:05
> To: regexp-user@jakarta.apache.org
> Subject: Problem with start of line "^" RE and subst
>
>
> Hi!
>
> I have the problem that I receive urls without "http://"
> part, so I used
> "^" as match and "http://" as replacement in RE.subst
>
> No that I call myre.subst("test.me","http://") it comes out as
> "http://est.me" and the "t" is missing.
>
> What's wrong?
>
> Harry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: regexp-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-user-help@jakarta.apache.org