SlideShare a Scribd company logo
Data weave more operations
Matches
• (':string', ':regex') ⇒ ':boolean'
• Matches a string against a regular expression,
and returns true or false.
• %dw 1.0
• %output application/json
• ---
• b: "admin123" matches /(d+)/
Transform and output
• { "b": false }
Starts With
Returns true or false depending on if a string starts
with a provided substring.
• %dw 1.0
• %output application/json
• ---
• {
• a: "Mariano" startsWith "Mar",
• b: "Mariano" startsWith "Em"
• }
Transform and output
Ends With
• Returns true or false depending on if a string
ends with a provided substring.
• %dw 1.0
• %output application/json
• ---
• {
• a: "Mariano" endsWith "no",
• b: "Mariano" endsWith "to"
• }
Transform and output
Find
• Given a string, it returns the index position
within the string at which a match was
matched. If found in multiple parts of the
string, it returns an array with the various idex
positions at which it was found. You can either
look for a simple string or a regular
expression.
Transform and output
Match
• Match a string against a regular expression.
Match returns an array that contains the
entire matching expression, followed by all of
the capture groups that match the provided
regex.
Transform and output
Similar
• Evaluates if two values are similar, regardless
of their type. For example, the string "1234"
and the number 1234 aren’t equal, but they
are recognized as similar.
Transform and output

More Related Content

PPTX
Mule esb How to convert from CSV to Json in 5 minutes
PPTX
How to Send IDOC to SAP using MuleSoft
PDF
Why Mulesoft ?
PPTX
Ui is Communication: How to design intuitive, user-centered interfaces by foc...
PPT
Mule anypoint exchange
PPTX
Load balancer in mule
PPTX
Anypoint connectors
PPTX
Batch processing
Mule esb How to convert from CSV to Json in 5 minutes
How to Send IDOC to SAP using MuleSoft
Why Mulesoft ?
Ui is Communication: How to design intuitive, user-centered interfaces by foc...
Mule anypoint exchange
Load balancer in mule
Anypoint connectors
Batch processing

More from Ramakrishna kapa (20)

PPTX
Msmq connectivity
PPTX
Scopes in mule
PPTX
Basic math operations using dataweave
PPTX
Dataweave types operators
PPTX
Operators in mule dataweave
PPTX
Data weave in mule
PPTX
Servicenow connector
PPTX
Introduction to testing mule
PPTX
Choice flow control
PPTX
Message enricher example
PPTX
Mule exception strategies
PPTX
Anypoint connector basics
PPTX
Mule global elements
PPTX
Mule message structure and varibles scopes
PPTX
How to create an api in mule
PPTX
Log4j is a reliable, fast and flexible
PPTX
PPTX
Vi editor
PPTX
Jsoup tutorial
PPTX
Msmq connectivity
Scopes in mule
Basic math operations using dataweave
Dataweave types operators
Operators in mule dataweave
Data weave in mule
Servicenow connector
Introduction to testing mule
Choice flow control
Message enricher example
Mule exception strategies
Anypoint connector basics
Mule global elements
Mule message structure and varibles scopes
How to create an api in mule
Log4j is a reliable, fast and flexible
Vi editor
Jsoup tutorial
Ad

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Machine learning based COVID-19 study performance prediction
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Monthly Chronicles - July 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
GamePlan Trading System Review: Professional Trader's Honest Take
Understanding_Digital_Forensics_Presentation.pptx
Network Security Unit 5.pdf for BCA BBA.
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
Dropbox Q2 2025 Financial Results & Investor Presentation
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
Ad

Data weave more operations

  • 1. Data weave more operations
  • 2. Matches • (':string', ':regex') ⇒ ':boolean' • Matches a string against a regular expression, and returns true or false. • %dw 1.0 • %output application/json • --- • b: "admin123" matches /(d+)/
  • 3. Transform and output • { "b": false }
  • 4. Starts With Returns true or false depending on if a string starts with a provided substring. • %dw 1.0 • %output application/json • --- • { • a: "Mariano" startsWith "Mar", • b: "Mariano" startsWith "Em" • }
  • 6. Ends With • Returns true or false depending on if a string ends with a provided substring. • %dw 1.0 • %output application/json • --- • { • a: "Mariano" endsWith "no", • b: "Mariano" endsWith "to" • }
  • 8. Find • Given a string, it returns the index position within the string at which a match was matched. If found in multiple parts of the string, it returns an array with the various idex positions at which it was found. You can either look for a simple string or a regular expression.
  • 10. Match • Match a string against a regular expression. Match returns an array that contains the entire matching expression, followed by all of the capture groups that match the provided regex.
  • 12. Similar • Evaluates if two values are similar, regardless of their type. For example, the string "1234" and the number 1234 aren’t equal, but they are recognized as similar.