You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2009/10/12 18:42:44 UTC

Re: Regex to escape .

In message <25...@talk.nabble.com>, Harsha1 writes:
>I want to know how to escape dot(.) from being acting as universal
>character.
...
>So i want to right regex which will take (dot) as dot only not as any other
>character.

I'm not a jakarta-regexp user, but the usual way is to escape a
meta-character with a backslash.  As a Java string that would look
like: "\\."

daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org