Thursday, 5 September 2013

Alternating string

Alternating string

I am trying to use regular expressions to match against a string that
starts with 7 numbers, then has a "K" inbetween it, and then 3 numbers
again. For example: 1234567K890.
I currently have $_a -match '^\d{7}K\d{3}'. However, this does not work
for my purposes. Does anyone have a solution?

No comments:

Post a Comment