vendredi 24 janvier 2020

Regexp pattern conditional extract [closed]

Imagine that we have string "-test". How to define pattern that will extract '-' to let say prefix property and rest of string to suffix property. Pattern should match also strings that don't start with '-' sign. In that case prefix property should be empty.

Best regards.

Aucun commentaire:

Enregistrer un commentaire