AnsweredAssumed Answered

Regex look ahead & look behind alternative

Question asked by salvaleonrp on Nov 8, 2017
Latest reply on Nov 8, 2017 by JTedrick-esristaff

I have a calculated value that will filter the letters t, s, or n separated by hyphens before or after.

 

My regex is looking for the single characters S, T, N, s, t or n that are between hyphens. JavaScript does not support the regex functions for look ahead and look behind. my regex is here: (?<=-)(t|s|n|T|S|N)(?=-)

 

Hope someone may have other regex or substring ideas how to parse this string value. Samples of  what I'm parsing is on the attached picture.

 

Thanks!

Outcomes