PedalProjects.co.uk New member Aug 27, 2023 #22 finebyfine said: Here we go (finally) https://github.com/ayfine/pedalbom Basically everything hinges on this named group regex pattern PHP: $pattern = '/(?P<type>^R|C|D|IC|Q|LDR)(?P<num>\d+)\s?(?P<val>.+)/i'; There's a similar one for electromechanical stuff further down but is more or less the same without searching for prefixes. Click to expand... Thanks @finebyfine this is really interesting
finebyfine said: Here we go (finally) https://github.com/ayfine/pedalbom Basically everything hinges on this named group regex pattern PHP: $pattern = '/(?P<type>^R|C|D|IC|Q|LDR)(?P<num>\d+)\s?(?P<val>.+)/i'; There's a similar one for electromechanical stuff further down but is more or less the same without searching for prefixes. Click to expand... Thanks @finebyfine this is really interesting