For building new rules you have to follow this which yes requires some c#
and to modify the existing rules(In built Rules)
go to the file in this path and inside you can modify few rules depending on what you need like can give regex or other rule changes
C:\Users\<Username>\AppData\Local\UiPath\Rules\RuleConfig.json
Check this for basic unerstanding
cheers