B
billsahiker
I am using the following to validate user input of a comma delimited
list of stock symbols, separated by a comma and one or two spaces:
^(?:\u0020{1,2})?\w{1,5}(?:\u0020{1,2})?(?:,(?:\u0020{1,2})?\w{1,5}(?:
\u0020{1,2})?)*$
It works, but I need to allow stock indices, which begin with ^ (ascii
94). How can I do that?
sample input:
MSFT, INTC,^DJI,LU, SIRI
bill
list of stock symbols, separated by a comma and one or two spaces:
^(?:\u0020{1,2})?\w{1,5}(?:\u0020{1,2})?(?:,(?:\u0020{1,2})?\w{1,5}(?:
\u0020{1,2})?)*$
It works, but I need to allow stock indices, which begin with ^ (ascii
94). How can I do that?
sample input:
MSFT, INTC,^DJI,LU, SIRI
bill