Can someone help me modify this Regex pattern so that it doesn't use positive lookahead and lookbehind since these are not compatible with JS and .NET?
The idea is that I am trying to get a first match of any characters that are between "-" and "-" ie. NY from a string like this: DSK-NY-110. Here's what I got that works but it won't work in JS and .NET at the same time so I need something that is compatible with both:
(?<=\-)\w+(?=\-)
Thanks!
-(\w+)-to grab the Group 1 value.