A
aswanson19
Guest
Hello, I'm having trouble rewriting my regular expressions from JavaScript into the .NET library. I'm trying to use Regex on a HTTP response to pull out a specific portion of text. Currently, I am handling the HTTP request in OpenEdge and using Regex in JavaScript. However, I want to move the Regex portion over to OpenEdge as well, that way I can call one function to make the request and return the matched text without having any logic on the client side. I have about 30 regular expressions I've written in JavaScript that work just fine. Here is one of them: new RegExp(/"displayActDeliveryDt":"(\d{1,2}\\u002f\d{1,2}\\u002f\d{4})"/); And here is the portion of the response that I'm trying to match. "displayActDeliveryDt":"3\u002f20\u002f2019" What is the best way to convert my JavaScript regex into a format that is suitable for OpenEdge and the .NET library? Notice that I need to match special characters like the double quote, as well as digits with varying occurrences ({1, 2}, {4}, etc.). Is there a simple conversion process, or will I need to rewrite all of them? Thanks!
Continue reading...
Continue reading...