exclude characters from counting?


Posted on 16th Feb 2014 07:03 pm by admin

Hello, I wanted to ask if you have a string like:
Code: $my_s='ASRGREGTGTR----REGREGRE+++RRRRRR....';

is there a way to count the length of the string, excluding non-word characters (+,- or .)?
Did you know?Explore Trending and Topic pages for more stories like this.

thank you
No comments posted yet

Your Answer:

Login to answer
72 Like 8 Dislike
Previous forums Next forums
Other forums

Legal Issues for SAP ERP o ERP in general
Hi experts,

Can someone please help me finding some documentation about legal issues tha

Allegro crashes when running load_bitmap. Why?
I can not get Allegro to load any BMP images. Here is a section of test code. The picture is in the

Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav

How do I get the row number from from an sql table query
Hi all

I have a table that I query and it returns a number of rows.
mysql_num_rows($query)

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

True way to see if action was successful?
If this is a good way to see if action was successful to continue:

Code: function changeGa

convert pps to wsf with php'how?
hi
i want to convert with php
PowerPoint file to swf file(flash)
how please?
thank!!!

str_replace help
Hey there,

I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean

php require help needed
Ok i tried to use the search funtion but the word require is everywhere.

i'm really new to cr

unserialize help, getting errors
hi all ,
I got a form with 6 fields (2 input and 4 select box), when the page loads one block is

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash