RE: Finding the number of occurences of a given string...

2004-05-19 Thread BAZLEY, Sebastian
of the form: example \d and set Match no: -1 S. -Original Message- From: Alan Chan [mailto:[EMAIL PROTECTED] Sent: 19 May 2004 18:09 To: [EMAIL PROTECTED] Subject: Finding the number of occurences of a given string... Hi, I've sent out this email before but g

Finding the number of occurences of a given string...

2004-05-19 Thread Alan Chan
Hi, I've sent out this email before but got no responses back. I hope someone can help me out this time. Here is my question: >From a given long string contained in a variable, I would like to get the number of occurrences of a certain substring that I also provide. For example, if

Finding the number of occurences of a given string

2004-04-15 Thread Alan Chan
Hi, >From a given long string contained in a variable, I would like to get the number of occurrences of a certain substring that I also provide. For example, if I have a user defined variable called ${text} which contains "example 1 example 2 example 3", and my substring to match is "exampl