[program-l] Regular Expression Question

  • From: "RicksPlace" <ofbgmail@xxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Sat, 6 Oct 2012 13:07:48 -0400

Hi: I want to edit a ticker symbol in a string all caps.
First position must be letter 
Followed by more cap letters, perhaps a dash or period then at least one more 
letter.
I have this as a starter does it look even remotely correct?
^[A-Z][A-Z]/-?/.?[A-Z]

Should there be a star in the second factor to indicate there can be any number 
of capital letters after the first?
Now I am remembering why I didnt use them a few years ago but I hope I can 
learn this time
Thanks Rick USA

Other related posts: