THE FORUM IS IN READ-ONLY MODE

This forum is in read-only mode. The new forum is live at https://discourse.openbullet.dev and registrations are open!

Regex Gift Card (-) and without (-)



  • Please i need a config i will add it to the Environment of openbullet

    For example:

    [WLTYPE]
    Name=GIFTCARD
    Regex= ?????
    Verify=True
    Separator=
    Slices=GIFTCARD

    Please i want to add the gift card as this example

    XXX1 - XXX1 - XXX1 - XXX1

    and this

    X15Z4DA6D4A8F4AF9A

    The gift card is 16 (Number+Characters) A-Z 0-9 and with that Seperator -

    Please any one have the regex for this ?

    i need a regex accept the gift card with SEPERATOR -
    and without it , example ( X45S44DA748DA9D) Glued to each other



  • @inconnu365
    [WLTYPE]
    Name=GiftCard
    Regex=^(....-....-....-....|.*)$
    Verify=True
    Separator=:
    Slices=GIFT

    try using this in your Environment. It is not advanced but it should still work .. and good luck


Log in to reply