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 Steven Ford <st...@vanderbilt.edu> on 2001/09/10 21:22:59 UTC
trouble matching an '*'
I am having trouble matching an *
RE re = new RE("\*");
gives me an invalid excape character error when I compile
RE re = new RE("\\*");
does not match the '*'
Any help would be greatly appreciated.
RE: trouble matching an '*'
Posted by Hanson Char <ha...@yahoo.com>.
What about "[*]" ?
-----Original Message-----
From: Steven Ford [mailto:steven.ford@vanderbilt.edu]
Sent: Monday, September 10, 2001 2:23 PM
To: regexp-user@jakarta.apache.org
Subject: trouble matching an '*'
I am having trouble matching an *
RE re = new RE("\*");
gives me an invalid excape character error when I compile
RE re = new RE("\\*");
does not match the '*'
Any help would be greatly appreciated.