gnu-regexp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Regexp] Please help a newbie...


From: Giuseppe Greco
Subject: Re: [Regexp] Please help a newbie...
Date: 27 Feb 2003 18:10:28 +0100

On Thu, 2003-02-27 at 18:23, Wes Biggs wrote:
> Giuseppe Greco wrote:
> > Hi to everybody.
> > 
> > I'm trying to count the occurrence of a single character
> > in a string with a regexp like this:
> > 
> > expr "1.3.4.5": 's/[^.]*//g'
> > 
> > ... but I always get 0 as a result...
> > 
> > I need to know how many points are there in string "1.3.4.5"
> > 
> > What is wrong in my regexp?
> > 
> > Thanks a lot,
> > 
> 
> Giuseppe--
> 
> Are you using the Java gnu.regexp package?  That's what this list is 
> for.  If you're having general regular expression problems people here 
> might be able to help, but the syntax in sed, awk, etc., varies from the 
> way the Java API typically works.
> 
> If you are using the Java package, can you post your Java code?  It 
> would help the rest of us debug your problem.

No, I'm not using the Java package...
My be I'm in the wrong list...

Do you know if there is another list at GNU
that treats regexp issues?

Gius_.
> 
> Wes
-- 
Giuseppe Greco
Agamura Corporation
Strada Regina 40
6928 Manno
Switzerland

Phone:  +41 (0)91 604 67 65
Mobile: +41 (0)76 390 60 32
Email:  address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]