Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleExample - Color/Size extractionExtraction
Remove color part from "Addison jacket - Black". Result "Addison jacket"
FROM: /\s-[\s\S]*/  TO: (leave empty)

Extract color value from title "Addison jacket - Black". Result "Black"
FROM: /^[\s\S]*-\s/ TO: (leave empty)

Extract color from "AALBORG - DUSTY BLUE - 50x70 CM". Result "DUSTY BLUE"
FROM: /(^[^-]*- | -[^-]*)/ TO: (leave empty)

Extract color from "Color: Blue, Size: XS,". Result "Blue"
FROM: /(.*Color: |,.*)/ TO: (leave empty)

Extract size from "Color: Blue, Size: XS,". Result "XS"
FROM: /(.*Size: |,.*)/ TO: (leave empty)

...