Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 40 Next »


Contents:

Our documentation site is moving!

For up-to-date documentation of Designer Cloud on AWS, please visit us at https://help.alteryx.com/AWS/.

   

Contents:


For a number of different transform types, you can specify the limits at which any match is valid for a text string. In the diagram below, you can see how six different positional identifiers can be applied to pattern matching:

NOTE: Depending on the type of transform, some of these clauses are not available.

Positioning

 

Figure: Pattern Clause Positioning

after

Identifies pattern or string after which the match is evaluated.

Example transformation:

Transformation Name Extract text or pattern
Parameter: Column MySentence
Parameter: Option On pattern
Parameter: After pattern 'eat '

Extracts:

pizza on Fridays with my friends."

from

Identifies pattern or string from which the match is evaluated. Any match includes the from clause pattern or string.

Example transformation:

Transformation Name Extract text or pattern
Parameter: Column MySentence
Parameter: Option Between two parameters
Parameter: After pattern 'eat '
Parameter: Include as part of match true

Extracts:

eat pizza on Fridays with my friends."


before

Identifies pattern or string before which the match is evaluated.

Example transformation:

Transformation Name Extract text or pattern
Parameter: Column MySentence
Parameter: Option On pattern
Parameter: Before pattern 'friends'

Extracts:

"I like to eat pizza on Fridays with my


to

Identifies pattern or string up to which the match is evaluated. Any match includes the to clause pattern or string.

Example transformation:

Transformation Name Extract text or pattern
Parameter: Column MySentence
Parameter: Option Between two patterns
Parameter: Before pattern 'friends'
Parameter: Include as part of match true

Extracts:

"I like to eat pizza on Fridays with my friends


on

Identifies pattern or string in which the match may be found.

Example transformation:

Transformation Name Extract text or pattern
Parameter: Column MySentence
Parameter: Option On pattern
Parameter: Match pattern 'Fridays'

Extracts:

Fridays


at

Identifies the index of starting (x) and ending (y) characters in the string to match. In the above example, at:2,6 matches the string like.

Example transformation:

Transformation Name Extract text or pattern
Parameter: Column MySentence
Parameter: Option Between two positions
Parameter: Positions 2,6

Extracts:

like

Pattern Parameter Interactions

The following table identifies the pattern parameters that can be matched with the parameter in the left column. 

NOTE: The at parameter does not interact with any of the listed parameters.

Parameterafterfrombeforetoon
afterSee Note 1.No.before or tobefore or toYes. Can include before.
fromNo.See Note 1.before or tobefore or toNo.
beforeafter or fromafter or fromSee Note 1.No.Yes. Can include after.
toafter or fromafter or fromNo.See Note 1.No.
onYes. Can include before.No.Yes. Can include after.No. 
  • Note 1: If there is no other pattern parameter in the transform, the maximum number of matches per cell is 1. If there is a matching parameter, more matches per cell can be found.

See Also for Pattern Clause Position Matching:

Error rendering macro 'contentbylabel'

parameters should not be empty

  • No labels

This page has no comments.