473,395 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Something more than Propercase

Does anyone have a Propercase script they dont mind
sharing. I have one from ASPFAQ thats quite good, but its
giving me results that aren't quite what I wanted -

Result What I wanted
====== =============

Mr Kipling Uk Mr Kipling UK
Mr Kipling (uk) Mr Kipling (UK)

I've reading up on regular expressions so that I can build
my own function for this, but this method just doesn't
click with me, I just cant seem to get my head around them
for anything more than a simple global replace!

TIA,

Colin
Jul 19 '05 #1
1 1315
There's a lot of factors to take into account over this so pick your
function carefully.
Have a look at:
http://www.developersdex.com/asp/mes...404ax%2Ecom%3E

HTH
Matt Smith

"Colin Steadman" <ms**@ThiS1SN0tPaRT0fTHEeMAILcolinsteadman.comNORT HISBit>
wrote in message news:02****************************@phx.gbl...
Does anyone have a Propercase script they dont mind
sharing. I have one from ASPFAQ thats quite good, but its
giving me results that aren't quite what I wanted -

Result What I wanted
====== =============

Mr Kipling Uk Mr Kipling UK
Mr Kipling (uk) Mr Kipling (UK)

I've reading up on regular expressions so that I can build
my own function for this, but this method just doesn't
click with me, I just cant seem to get my head around them
for anything more than a simple global replace!

TIA,

Colin

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mike | last post by:
I'm having problem using strConv("john", 3) to generate a propercase version of john. does strConv not work in ASP??? Any advise is greatly appreciated. Thanks, Mike
6
by: Michael Sparks | last post by:
Hi, I suspect this is a bug with AMK's Crypto package from http://www.amk.ca/python/code/crypto , but want to check to see if I'm being dumb before posting a bug report. I'm looking at...
19
by: Lorenzo J. Lucchini | last post by:
My code contains this declaration: : typedef union { : word Word; : struct { : byte Low; : byte High; : } Bytes; : } reg;
56
by: maadhuu | last post by:
hello, this is a piece of code ,which is giving an error. #include<stdio.h> int main() { int a =10; void *p = &a; printf("%d ", *p ); //error....why should it //be an error ?can't the...
44
by: Tolga | last post by:
As far as I know, Perl is known as "there are many ways to do something" and Python is known as "there is only one way". Could you please explain this? How is this possible and is it *really* a...
20
by: James | last post by:
I am new to vb.net (I am an old vb6 programmer). I cannot figure out an easy way to watch variables. In vb6 all I did was right click and could chose to stop execution when a variable chances as...
1
by: chilly53 | last post by:
I have a datagrid that has pulled a bunch of entries from a database in which all the entries were in all caps. I passed each entry through the VBStrConv function to ProperCase before displaying...
3
by: Peter Oliphant | last post by:
It's not necessary, but it would be nice if there was a way I could easily create something like a 'web browser form' or a 'display web page form' as forms in my application (in a Panel would be...
0
by: Hendrik van Rooyen | last post by:
Lawrence D'Oliveiro wrote: The above is an endless loop, doing something every five seconds, and something else in the in between times. I don't think you are dense - its a good point,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.