|
From: | Wes Biggs |
Subject: | Re: [Regexp] Please help a newbie... |
Date: | Thu, 27 Feb 2003 09:23:38 -0800 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126 |
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.
Wes
[Prev in Thread] | Current Thread | [Next in Thread] |