You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/codefresh-yaml/condition-expression-syntax.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,9 +94,9 @@ exposed by each individual pipeline step]({{site.baseurl}}/docs/codefresh-yaml/v
94
94
| length| string| Length of a string.|`length("gump") == 4`|
95
95
| includes| 0: string - main string<br>1: string - string to search for| Whether a search string is located within the main string.|`includes("codefresh", "odef") == true`|
96
96
| indexOf| 0: string - main string<br>1: string - string to search for| Index of a search string if it is found inside the main string|`indexOf("codefresh", "odef") == 1`|
97
-
| match| 0: string - main string<br>1: string - regular expression string,[JS style](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) (Note: JS strings are expected to haveescapecharacters before special characters, forexample`"^\\d+$"` instead of`"^\d+$"`)<br>2: boolean - ignore case| Search for a regular expression inside a string, ignoring or not ignoring case|`match("hello there you", "..ll.", false) == true` <br>`match("hello there you", "..LL.", false) == false` <br>`match("hello there you", "hell$", true) == false` <br>`match("hello there you", "^hell", true) == true` <br>`match("hello there you", "bye", false) == false`|
98
-
| Variable| string| Search for the value of a variable|`Variable('some-clone')`|
99
-
| Member| 0: string - variable name<br>1: string - member name| Search for the value of a variable member|`Member('some-clone', 'working-directory')`|
97
+
| match| 0: string - main string<br>1: string - regular expression string,[JS style](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) (Note:inJS strings, the backslash`\` is anescapecharacter so in order to use a literal backslash, you need to escape it. Forexample:`"^\\d+$"` instead of`"^\d+$"`)<br>2: boolean - ignore case| Search for a regular expression inside a string, ignoring or not ignoring case|`match("hello there you", "..ll.", false) == true` <br>`match("hello there you", "..LL.", false) == false` <br>`match("hello there you", "hell$", true) == false` <br>`match("hello there you", "^hell", true) == true` <br>`match("hello there you", "bye", false) == false`|
98
+
| Variable| string| Search for the value of a variable|`Variable('some-clone')`|
99
+
| Member| 0: string - variable name<br>1: string - member name| Search for the value of a variable member|`Member('some-clone', 'working-directory')`|