View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Simon Lloyd[_1165_] Simon Lloyd[_1165_] is offline
external usenet poster
 
Posts: 1
Default Modifying regex to accept comma's?



Also posted he 'VBA Express Forum'
(http://www.vbaexpress.com/forum/showthread.php?t=27363)

Hi all i'm using regex (provided for me by some one else because i
don't have the foggiest with it) to force an entry of letters (at least
for the first two, rather than all numeric, however i want the user to
be able to enter the data in this fashion xxxxxx, xxxxxx where x will be
a character, however, using this ^[a-z]{2}[a-z ]*$ does not allow the
comma, can someone help modify it to accept it?


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=110364