lookupGetRegExp

Examples:

Given the following data table :

key value
bl.* value1
\d\d value2
some value value3
  • when $(‘something’) is ‘bla’ : lookupGetRegExp($('something'), lookupName, 'key', 'value') → “value1”
  • when $(‘something’) is ‘22’ : lookupGetRegExp($('something'), lookupName, 'key', 'value') → “value2”
  • when $(‘something’) is ‘SOME VALUE’ : lookupGetRegExp($('something'), lookupName, 'key', 'value') → “value3”