Connecting Tech Pros Worldwide Help | Site Map

unix regular expression

Newbie
 
Join Date: Feb 2009
Posts: 8
#1: Jul 19 '09
what is the regular expression for sed to match names :such as jTom,kTalor,mJane.

Thank you
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,126
#2: Jul 20 '09

re: unix regular expression


try this one :) in case the names don't include special characters:

Expand|Select|Wrap|Line Numbers
  1. ^[a-z][A-Z][a-zA-Z]+$
Reply