I have a condition on my procedure:
if regexp_like(str1,'^L[0-9]{4}') then
str2 := substr(str1,2,length(str1) - 1);
else
str2 := str1;
end if;
I am trying to evaluate str1 to see if the 2nd character to the last character are all digits
I tried the following code to no avail:
if regexp_like(str1,'^L[0-9]{'length(str1) - 1'}') then
if regexp_like(str1,'^L[0-9]{length(str1) - 1}') then
if regexp_like(str1,'^L[0-9]{'||length(str1) - 1||'}') then
Any help will be greatly appreciated.
if regexp_like(str1,'^L[0-9]{4}') then
str2 := substr(str1,2,length(str1) - 1);
else
str2 := str1;
end if;
I am trying to evaluate str1 to see if the 2nd character to the last character are all digits
I tried the following code to no avail:
if regexp_like(str1,'^L[0-9]{'length(str1) - 1'}') then
if regexp_like(str1,'^L[0-9]{length(str1) - 1}') then
if regexp_like(str1,'^L[0-9]{'||length(str1) - 1||'}') then
Any help will be greatly appreciated.