P
Philip Primak
Hi
I wonder if there is a way to scan a string from right to left using
PRX expression. For example I need to find the first space from the
right in string "I love you". So I want the pattern / / scan from right
to left and find as result space between "love" and "you" at position
7. I understand that it can be solved using pattern / [^ ]*$/ or using
strait pattern / / and trick like
position=length(string)-prxmatch(prx,reverse(string))+1 or something
like this. All those solutions do not force PRX functions to scan from
right to left but they just use tricks to get the last space found. I
am just curious if there is a option which would force PRX expressions
to make scan from right to left.
Thank you
Philip Primak
Genzyme Corp
I wonder if there is a way to scan a string from right to left using
PRX expression. For example I need to find the first space from the
right in string "I love you". So I want the pattern / / scan from right
to left and find as result space between "love" and "you" at position
7. I understand that it can be solved using pattern / [^ ]*$/ or using
strait pattern / / and trick like
position=length(string)-prxmatch(prx,reverse(string))+1 or something
like this. All those solutions do not force PRX functions to scan from
right to left but they just use tricks to get the last space found. I
am just curious if there is a option which would force PRX expressions
to make scan from right to left.
Thank you
Philip Primak
Genzyme Corp