Lazaaa Lazaaa - 1 year ago 95
PHP Question

Regex number of spaces

I have a strings "Peugeot 208 1.6HDi192 TGK Confort" or "Renault Clio III 1.5DCi75 AC-Tem" but i need only "Peugeot 208 1.6HDi192" and "Renault Clio III 1.5DCi75".
I need know number of spaces cc99 or cc999 (c=character).

Ty for help.

Answer Source

Assuming that each car fits the same type of formatting, this expression would work for you:


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download