Remove words with lowercase letters in them

I am reading words from an image(licence) and I know that every word on this licence is uppercase so…If it picks up background noise and returns lowercase letters alone or in words I know that that is not useful/or incorrect information.

From a licence this data is returned….

aaaa——————————————aESESESsSs—— VICTORIA AUSTRALIA JANE CITIZEN 87652301 FLAT 10 " 77 SAMPLE-PARADE . ‘ KEW-EAST VIC 3102 .\ e ol LICENCE EXPIRY DATE OF BIRTH 20-05-2019 29-07-1983 \ ' ) EICENCE TYRE ‘CONDITIONS Alh 7 al CAR A\ SBEAXYZ 28071985 SN |_vicroads | =< AN e

One of my points of sanitising this into useful info is to remove all words and letters with lowercase characters. Will I need to split by space, then iterate through each word and remove if it finds lowercase or is there a regex pattern I can use?

I tried this text = text.replace(/[^A-Z0-9 \n]/g, '') but would like to also remove full words with lowercase letters as oppose to just all lowercase letters by themselves.


63 thoughts on “Remove words with lowercase letters in them”

  1. Howdy! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but
    I’m not seeing very good gains. If you know of any please share.

  2. Heya i am for the first time here. I came across this board and I find It really useful & it helped me out a lot.
    I hope to give something back and help others like you helped me.

  3. you’re really a good webmaster. The website loading speed is incredible.
    It sort of feels that you are doing any unique trick.

    Moreover, The contents are masterwork. you’ve performed a magnificent process on this subject!