Module: IGMarkets::Regex

Defined in:
lib/ig_markets/regex.rb

Overview

Contains regex’s for validating specific types of strings.

Constant Summary collapse

CURRENCY =

Regex used to validate an ISO currency code.

/\A[A-Z]{3}\Z/
EPIC =

Regex used to validate an EPIC.

/\A[A-Z,a-z,0-9,.,_]{6,30}\Z/