Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2004, 01:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Moharo
Default string function

how can i find out whether a character within a word or phrase is a letter or a punctuation character like dot or comma or colon or semicolon (.,:;><) etc ?

the genuine genius
__________________
www.campusgrind.com - college portal
 
Old January 30th, 2004, 06:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use a regular expression match.
  http://www.php.net/pcre
  http://www.php.net/preg_match

I would suggest searching for any character that's NOT an alphanumeric character.


Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
convert string to function austinf Javascript 3 September 19th, 2008 03:25 AM
Problem in string.split() function mamatharocks Biztalk 0 June 2nd, 2008 11:17 AM
Calling vbscript function(passed value string) manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 0 May 7th, 2006 11:50 PM
string function in sql verver 2000 i-tapaz SQL Server 2000 0 April 23rd, 2006 09:52 PM
Query String Cast or Convert function hoffmann Access 6 February 25th, 2004 01:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.