First letter Capital of every word in a expression

Hi Experts,
I am trying to do a check using the match_regex to check in a expression if the first letter of every word are in capital.
If it find all staring letter in capital for every word in an expression then only it should return 1 else 0
Can anybody guide me on this.
Example : I Will Go Home - should return 1
                  I will go home   - should return 0

$num = 1;
while(word($inputstr,$num) != NULL)
begin
if(word($inputstr,$num) != init_cap(word($inputstr,$num)))
begin
return 0;
end
$num = $num + 1;
end
return 1;

Similar Messages

  • How to Capitalize the first letter or an entire word using a shortcut on the keyboard just like in microsoft that uses shift+F3

    please how can one How to Capitalize the first letter or an entire word using a shortcut on the keyboard just like in microsoft that uses shift+F3

    What do you mean there was "no effect?" I'm not aware of any effects.
    It looks like that Service is also in the App Store. From their screen shots, the services are prefaced with WordService:
    You can see an example in the App Store for their app: App Store
    After installing, you should now have those text services in your Services menu. You can then add shortcuts in the Keyboard System Prefs.
    Most Apple apps have a Transformations menu in the Edit menu. You can Make upper, lower, and Initial caps with those. I would stick with Word Services, but you can make Application Shortcuts for the items in the Transformations menu.
    Again, in Keyboard System Prefs, Under Applications, Click the Add button on the right side pane.
    Set it for All Applications
    Enter the menu command exactly as they appear in the Transformation menu (separate entries for each),
    Make Upper Case
    Make Lower Case
    Capitalize
    Give them a shortcut.

  • Need to not have first letter capitalized in text boxes

    How do I get the first letter in a text box to NOT capitalize? Boxes in some web forms for email addresses are simply text boxes, so when I start to enter my email address the fist letter is capitalized and I can't seem to figure out how to avoid this (except by double typing the first letter and then going back and deleting the first letter). I'm not sure if this always matters, but my work email is case sensitive - if the first letter is capitalized, the message will get bounced.

    Tap the shift key and it will become lower case

  • Right or Wrong? help: user account short name has Capital First Letter

    Hello
    I have the same issue as a post in the Mountain Lion discussion group.  It doesn't seem to be getting an answer.  So I thought I would post it here, being that I do have Snow Leopard.
    The Mountain Lion post is here: https://discussions.apple.com/message/21665861#21665861
    Here is MY question::
    Can anyone answer this?  I have this same thing.  I've had this Mac since 2010, too, I think, at least two years.  I don't remember being asked to use lowercase, nor actually typing in the Capital letter.  I stumbled upon the realization when I was using my Macbook and my user name whille different does use all lowercase.  The Macbook is newer.
    I've been running this Mac with the first letter Capital for the short name with no problems that I know of.  I do have Time Machine backups that I don't really want to lose access to.
    What are the benefits and pitfalls of using the method etresoft explains to change it to all lowercase??  Should I do it just to do it and be in line with Apple's guidelines or should I leave well enough alone??  Which way will cause me MORE problems?  Running with the Capital letter or going through the process of changing it to lowercase??
    What kind of problems will I run into if I change it or don't change it???
    Where "oldshortname" is your old user name and "newshortname" is the user name you want to change it to. Keep in mind that both oldshortname and newshortname must be all lowercase, with no spaces, and only contain letters or numbers.
    And, Padgreen has an excellent point -- how do we do this change process if our Old Shortname is Shortname??  How can we type "shortname" for the "oldshortname" if our shortname is not all lowercase??
    etresoft -- are you around??
    Or someone else?  Thanks!!
    (the only thing I can even think of as a problem is when I copy files/folders over to my Macbook - it sometimes makes "nobody" the owner of the file/folder and I find out when I try to edit or move the file. I can usually just change the owner and everything is fine.  I don't know if this is related or not.)

    http://support.apple.com/kb/ht1428 states:
    Select the Home folder with the short name you want to change, and rename it just like you would rename any folder. Keep in mind that the shortname must be all lowercase, with no spaces, and only contain letters.

  • How do i prevent the system from keeping what u type - username, sites, etc. on search box, i just type the first letter and it comes up immediately; even my username!

    When I go to a search box, i type in the first letter and the whole word comes up.
    I type in the first letter of the username and the whole word comes up.
    I just type anything and the next time i log, it remembers the whole word.
    Please take this out of my system. I do not want it to work this way. I want all memory to be gone.

    I'm starting to come to this conclusion myself, actually... though, how mom managed to do this on accident without mucking about in terminals or anything more than just a cursory knowledge of the OS X system configurations (behind the scenes), I don't know : |
    ... on the other hand, her and I tend to be the exceptions to a lot of rules : |
    I downloaded and installed TinkerTool, even though it supposedly doesn't work past 10.5.8, in the hoopes that, what it displayed (regardless of what it could change) would be correct as far as my "System" and "System (Headlines)" font settings were (see attached screenshot of the font section of TinkerTool for my system--not mom's).
    I've instructed her to install and run the utility (but not to change anything) and then send me a screenshot of the "Fonts" section so I can compare it to my own. If there's something different on her system, since TinkerTool should work on hers, we may be able to fix it that way... though it would, frustratingly enough, remain a mystery to all concerned as to how she managed to stumble upon this in the first place : |
    Anyway, I'm still hard at work on it... hopefully others are too and will share what they discover (if anything).

  • Wireless apple keyboard  repeating first letter i type

    every wireless keyboard  I have purchased, to date 10 +... has   had  an issue of  repeating the  first  letter i enter every time it  is used...after the  first letter   there are no repeats.the problem  seemed to  have  stopped for  a while until the last  IOS8 update  and  now it is back.  a brand new  ipad retnina and  a new  keyboard. I tried new  batteries but it  did not    fix the  issue. Not  a problem   with the OEM internal  keyboard...

    Other's have noted the problem as well. There is a longer thread at:
    http://discussions.apple.com/thread.jspa?messageID=3659519&#3659519
    As far as I know, the problem is unresolved.

  • Making the first letter of every word a capital

    hello CF oracles
    could you guys please advise me the best way to make the
    first letter in every word of a string a capital letter. (and make
    all the other letters lower case).
    eg. convert "the quick brown fox" into "The Quick Brown Fox"
    or convert "THE QUICK BROWN FOX" into "The Quick Brown Fox"
    I am taking form data and inserting it into my table, so i
    want to get it right as the data is inserted.
    i found a "UDF" on CFLIb.org that proports to do this, but i
    don't know how to set up a UDF, are there other ways or is this
    considered the best approach.
    http://www.cflib.org/udf.cfm?id=9&enable=1
    thanks for any help you can give me

    found it, here's the top info, Titlecase is what you want for
    this.:
    changecase.cfm
    Rev 1.01
    cf_changecase is a simple custom tag to format case in given
    string.
    (c) 2001, Rizal Firmansyah, [email protected]
    Input var:
    * case (mandatory)
    possible inputs are
    - sentencecase: Sentence case (default)
    - titlecase: Title Case
    - lowercase: lowercase
    - uppercase: UPPER CASE
    "happysailingdude" <[email protected]> wrote
    in message
    news:e46tjv$e30$[email protected]..
    > hi Dan thanks very much. I have made an executive
    decision to do a bit of
    > a
    > hack for now as my site is only small so if a user
    enters something in the
    > wrong way i can quickly manually update it myself.
    >
    > so now i have this which works 9 times out of ten if the
    user enters a one
    > word name eg "bill" or "fred" of "jane" then it works
    just fine
    >
    > the only time it doesnt work is if the user's name is
    more than 1 word (or
    > is
    > hyphenated) eg "mary anne" or "anne-marie" hence the
    first cfif line - in
    > these
    > cases i can manually update
    >
    > i put this here in case it is of use to anyone else
    >
    > cheers
    >
    > <cfif not (FORM.firstName contains " " or
    FORM.firstname contains "-")>
    > '#Left( UCase( "#FORM.firstName#" ), 1 )##Right( LCase(
    > "#FORM.firstName#" ), Len("#FORM.firstName#" ) - 1 )#'
    > <cfelse>
    > '#FORM.firstName#'
    > </cfif>
    >

  • FM to translate first letter of every word to upper case.

    Hi all,
    I have a requirement to change the first letter of every word in sentence to Upper case.For example if the sentence is 'fifty eight thousand' it has to be changed to 'Fifty Eight Thousand'.Is there any FM to acheive this? Any help would be highly appreciated.
    Thanks and Regards
    Kiran.

    it is useful for u :
    FM:ISP_CONVERT_FIRSTCHARS_TOUPPER
    OR u can user below code:
    translate output_string to lower case.                 
      pos_max = strlen( output_string ) - 1.
      pos = 0.
      assign output_string+pos(1) to <poi>.
      assign input_string+pos(1)  to <hpoi>.
      <poi> = <hpoi>.
      assign input_string+pos(*) to <rest>.
      while <rest> ca separators.
        pos = pos + sy-fdpos + 1.
        if pos > pos_max. exit. endif.
        assign output_string+pos(1) to <poi>.
        assign input_string+pos(1)  to <hpoi>.
        <poi> = <hpoi>.
        assign input_string+pos(*) to <rest>.
      endwhile.

  • How to Capitalize the First Letter in Every Word in Mysql

    Hi,
    I have been trying to tidy up a massive database where visitors have been sloppy when entering text. The main thing I want to do is to Capitalize The First Letter In Every Word In Mysql.
    I have found the code below in PHP but it keeps finding an error on the WHILE line:
    <?php ini_set('display_errors', '1'); ?>
    <?php require_once('Connections/maison_connection.php'); ?>
    <?php
    $result = mysql_query ("SELECT column, id FROM table");
    while ($row = mysql_fetch_array($result)) {
    $id = $row["id"];
    $column2 = ucwords($row["column"]);
    $query2 = "UPDATE table SET column = '$column2′ WHERE id = '$id'";
    mysql_query($query2);
    ?>
    My table is called MailingList and the Column is called Name, so I have altered the script to this: but it still shows the same WHILE error:
    <?php ini_set('display_errors', '1'); ?>
    <?php require_once('Connections/maison_connection.php'); ?>
    <?php
    $result = mysql_query ("SELECT Name, id FROM MailingList");
    while ($row = mysql_fetch_array($result)) {
    $id = $row["id"];
    $Name2 = ucwords($row["Name"]);
    $query2 = "UPDATE MailingList SET Name = '$Name2′ WHERE id = '$id'";
    mysql_query($query2);
    ?>
    Any ideas??

    I got it to work this way in SQL: I am SURE there is an abbreviated way to do it, but at least it works
    UPDATE MailingList SET Name = replace(Name," a"," A");
    UPDATE MailingList SET Name = replace(Name," b"," B");
    UPDATE MailingList SET Name = replace(Name," c"," C");
    UPDATE MailingList SET Name = replace(Name," d"," D");
    UPDATE MailingList SET Name = replace(Name," e"," E");
    UPDATE MailingList SET Name = replace(Name," f"," F");
    UPDATE MailingList SET Name = replace(Name," g"," G");
    UPDATE MailingList SET Name = replace(Name," h"," H");
    UPDATE MailingList SET Name = replace(Name," i"," I");
    UPDATE MailingList SET Name = replace(Name," j"," J");
    UPDATE MailingList SET Name = replace(Name," k"," K");
    UPDATE MailingList SET Name = replace(Name," l"," L");
    UPDATE MailingList SET Name = replace(Name," m"," M");
    UPDATE MailingList SET Name = replace(Name," n"," N");
    UPDATE MailingList SET Name = replace(Name," o"," O");
    UPDATE MailingList SET Name = replace(Name," p"," P");
    UPDATE MailingList SET Name = replace(Name," q"," Q");
    UPDATE MailingList SET Name = replace(Name," r"," R");
    UPDATE MailingList SET Name = replace(Name," s"," S");
    UPDATE MailingList SET Name = replace(Name," t"," T");
    UPDATE MailingList SET Name = replace(Name," u"," U");
    UPDATE MailingList SET Name = replace(Name," v"," V");
    UPDATE MailingList SET Name = replace(Name," w"," W");
    UPDATE MailingList SET Name = replace(Name," x"," X");
    UPDATE MailingList SET Name = replace(Name," y"," Y");
    UPDATE MailingList SET Name = replace(Name," z"," Z");

  • How do I stop this from capitalizing every first letter!

    Every time I try to enter an email or a password my iPad insists on capitalizing the first letter! See! It even insisted on capitalizing the P in iPad! I have tried everything! I have tried holding down the shift key. I have tried caps or non caps. I realize that this is making it easier to write this message, but I think I'd rather just do it myself!

    The default is to capitalize a letter after the end of the prior sentence when you enter any type of punctuation. iPad is defaulted to iPad as that is how it is spelled by Apple. I don't think you can get around the way it works.

  • I don't want the first letter of every line to be capitalized

    When I try to put in user id's and passwords on web sites, I don't always want the first letter to be capitalized.  How do you make the Ipad stop doing this?

    Settings -> General -> Keyboard
    Turn off Auto-Capitalization.
    Regards.

  • Is there a way to auto capitalize the first letter of every word?

    I Like To Type In This Way. I Was Wondering If There Is A Setting That Will Automatically Capitalize The First Letter Of Each Word So That I Don't Have To Keep Hitting Shift Before Each First Letter.
    Thank You

    AdamMarshall wrote:
    Nice to see so many 'helpful' responses.
    This casing is useful for example, on an Address field. It would be good if the OS had this option for developers.
    I'm pretty sure it does as I've certainly had apps that, in certain fields, do use title case.

  • Is their a way to turn on auto-capitalization of the first letter of every word??

    i want da first letter to be in caps without me pressing caps lock or using shift
    i.e Like This But Without Using Those Two Keys

    There have been some threads here about large-scale deployment, but I don't know whether they would help after Firefox has been installed.
    Random thought:
    I suspect (but haven't checked) that changing the "Clear Recent History" options would add corresponding entries to prefs.js in the user's profile folder. (These usually are added during Firefox shut-down.) That's just a plain text file and you could append to it by a variety of means.
    It might be possible to use a VBScript during logon to update that file before the user starts Firefox. The script would have to detect the random folder name(s) in order to make the update.

  • No capital A when first letter of word.

    I Cant get the shift A to give me a letter when A is the first letter of a sentence. I have to use the cap lock key, and this is only on one of my accounts, any ideas?

    Hi, as it is only on 1 of your accounts I would:-
    (1) Repair Permissions (2) Go the SMC reset Route
    I Googled your Issue & some people said that they had not installed the latest updates...L

  • First letter in capital

    I would like to know... one very annoying thing with the E71 is that in autocorrect spelling mode, it insists on making the first letter of every word (or sentence) in capital letters, where I only seldom want it. Can this be switched off without switching autocorrect off entirely?
    Thanks

    I really love predictive text and the more you use it the better it gets, as the phone learns how you write, I can enter all my logins and email addresses using predictive because my phone has learned what I want to type, I even use it with my physical qwerty keyboard as it speeds things up incredibly . Just persist with it and it will get better and better !
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

Maybe you are looking for

  • How do I change the artist of an album on my iPhone?

    I bought a new album a couple days ago and my phone lists the artist as "unknown". I switched my iPhone's settings on iTunes so I can manage my music manually and deleted the album. Then I loaded it again and it still says the artist is unknown. How

  • Problem while using Comparison Operator 'CA' in select queries

    Hi , I have written select query like this.    SELECT * FROM rsdodso INTO TABLE gt_rsdodso                                     WHERE odsobject CA s_obj-low. then I am getting error 'CA is not a valid comparison operator'. Would you please suggest me

  • The number of client access licenses may be reset to five in Windows Small Business Server 2003

    Ran into an issue on the server after the power loss. My Client Access Licenses were reset to 5 with Maximum usage of 12. I have about 25 PC's and Server also hosts exchange, which now prevents users from accessing OWA and local profiles. After diggi

  • Pdf into Aperture has black background

    Hi All. I am importing pdf's into Aperture and the background seems to come in black in an odd way. These were originally produced out of AutoCad. Does anyone know if there is a Mac workaround for this or if I have a setting wrong somewhere? Also, ca

  • E-mail Body Displays Only 1 Row From Select

    Because APEX doesn't currently (easily) support attachments to e-mail, I've created a process to call the apex_mail.send procedure that then displays specific criteria in the body of the e-mail. This is gathered via a cursor, etc. The problem is, my