cancel
Showing results for 
Search instead for 
Did you mean: 

Rule Check for Fraction Character ½

Former Member
0 Kudos

Hello,

Can anyone suggest Rule Check for Fraction Character ( Ex: ( ½ ) ) in the input string ?

Thanks

Nethaji Guru

Accepted Solutions (0)

Answers (3)

Answers (3)

krishnamohan_corp9
Participant
0 Kudos

Hi,

If the fraction is 24 1/2, then the rule will look like

Begin

if(match_regex($Parameter, '[[0-9]\s[0-9]/[0-9]]*',null))

return true;

else

return false;

end

Regards

Krishna Mohan

mageshwaran_subramanian
Active Contributor
0 Kudos

I guess the context is something like 24½, right?

krishnamohan_corp9
Participant
0 Kudos

Hi Nethaji,

Please find the below rule check for fraction character.

Begin

if(match_regex($parameter,'[[0-9]/[0-9]]*',null)

return true;

else return false;

end

Thanks

Krishna Mohan