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

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

[Regexp] Please help a newbie...


From: Giuseppe Greco
Subject: [Regexp] Please help a newbie...
Date: 27 Feb 2003 16:08:01 +0100

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 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]