[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

regex to look for names in lowercase only

Hi -

I am trying to create a regex that will capture names that are only in lowercase and addresses that are only in lowercase.

So, i would match on:
henry

but not on:
hEnry

Also for address, i need to match if all the alpha characters are lower case:

So, i would match on;
123 main street

but no on:
123 Main street

Thank you
0
farmingtonis
Asked:
farmingtonis
1 Solution
 
Dan CraciunIT ConsultantCommented:
^[a-z0-9 ]*$

HTH,
Dan
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now