On the Translation of regular expressions

source = "

><<>sadas

"; Regex Reg = new Regex(@"(?is)(?<=<P>).*?(?=</P>)", RegexOptions.IgnoreCase); //

var Content = Reg.Match(source).Value; //js // (?is)(?<=<P>).*?(?=</P>) //
Mar.05,2021

js regular function is relatively weak, only backward matching, not forward matching


so "

> yo < hello, < ouch > feed sadas

" .match (/ (? < =

). *? (? <\ / p >) / ig)


this is due to the js rule function limitation on the browser side.

Menu