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 .)?

thank you

No comments posted yet

Your Answer:

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

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

Upload simple problem
Really confused!! I run once and it worked, but when i tried today...it didn't work

Which par

upload photo limits
ive got a upload photo script and im just trying to make more secure currently it limits size and as

IIS7 and getimagesize() problem
I have just discovered after hrs of trying to fix a problem where it's coming from. It's to do with

Help If user voted, block them
On my Prayer request site, i let users Click a button to Pray for somone that has posted a pray, i g

help with Get_
ok some how this is not working i am not sure what i am doing wrong here but what this does is when

Prevention Help
How can I use PHP or any other language (feel free to move this thread) to prevent users doing scree

PHP Game
hy i was wondering what's the best method in order to make some automatic updates in a php game
<

New Search Engine problem
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

Word Trimming
Hi Guys & Gals!!

Hope you are all ok....

I need some help with the following

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