diff options
author | Joseph Yaworski <joseph.yaworski@fireeye.com> | 2016-04-11 22:09:24 -0400 |
---|---|---|
committer | Joseph Yaworski <joseph.yaworski@fireeye.com> | 2016-04-12 13:10:39 -0400 |
commit | 0d46515b57cea60d4d5f1e4d81a75a448a7a73a8 (patch) | |
tree | 6ec20e4e1e0485018b2b70980f9257fc2af5994e /README.markdown | |
parent | e3a6e2c601416ed7c656ccaf75eaec967f4eb687 (diff) |
Add support for regular expressions to delete
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown index 6cedc2a..2f5faf3 100644 --- a/README.markdown +++ b/README.markdown @@ -265,7 +265,7 @@ Takes a resource reference and an optional hash of attributes. Returns 'true' if #### `delete` -Deletes all instances of a given element from an array, substring from a string, or key from a hash. For example, `delete(['a','b','c','b'], 'b')` returns ['a','c']; `delete('abracadabra', 'bra')` returns 'acada'. `delete({'a' => 1,'b' => 2,'c' => 3},['b','c'])` returns {'a'=> 1}. *Type*: rvalue. +Deletes all instances of a given element from an array, substring from a string, or key from a hash. Arrays and hashes may also match on regular expressions. For example, `delete(['a','b','c','b'], 'b')` returns ['a','c']; `delete('abracadabra', 'bra')` returns 'acada'. `delete({'a' => 1,'b' => 2,'c' => 3},['b','c'])` returns {'a'=> 1}, `delete(['abf', 'ab', 'ac'], '^ab.*')` returns ['ac']. *Type*: rvalue. #### `delete_at` |