none
Regular Expression Questions RRS feed

  • Question

  • Hello:

    I am new to the community, and have a regular expression questions.

    In the text list below:

    Cholesterol 
    20 
    mg

    What is the regular expression to match the the 1st Uppercase letter at beginning position of each line?

    Is this code corrected /^[A-Z]/i ?

    Thanks

    Dennis

    Tuesday, January 16, 2018 7:55 PM

All replies

  • ^[A-Z] matches beginning of input. So this presumes that you are reading line by line.

    David Candy

    Saturday, January 20, 2018 10:36 PM