I'm just wondering, is there a way of coding a textbox to search for certain words and automatically changing their case...?
An example,
The user types out a paragraph in which he specifies a street, e.g. lime avenue, or a name e.g. roger federer, or an address, e.g. flat 14, new cut road, plymouth, sg4 3xb.
Within this paragraph the user wants the above entries to appear as follows,
LIME AVENUE, i.e. all UpperCase
Roger FEDERER, i.e. First name ProperCase, lastname UpperCase
FLAT 14, NEW CUT ROAD, PLYMOUTH, SG4 3XB. i.e. all UpperCase
Can this be achieved?
Some problems I forsee....
A search could be created to look for "road" or "avenue" or "street".....but what about the word preceeding it, i.e. lime avenue, or what if there are more than one word, i.e. new cut road?
Also, what if the name was "**** view", since you can also 'view' something...but wouldn't want every instance of view capitalised?
In terms of the persons name...there could be an almost infinite number of permutations, as with address?
Therefore what about the user placing some kind of indication with each word(s) of interest...something for the search to look out for, for example
*lime avenue*, *flat 14, new cut road, plymouth, sg4 3xb*, and #roger federer#, where anything between *'s would be capitalised, and everything between #'s would be first word ProperCase, second word UpperCase...also where hyphenated words count as one, i.e. hunting-smythe.
The find and replace feature in Word could be utilised once the text makes it into a document but the user would have to search each one in turn surely?
Any thoughts?![]()
Bookmarks