Skip to main content

Text Formatter: Customize Your Text with Ease

Welcome to the Stack Text Formatter guide! This tool is designed to help you modify and extract details from your text, ensuring it fits your needs perfectly. Below, you'll find a comprehensive overview of what the Text Formatter can do and how to use it effectively.

What is the Text Formatter Workflow Action?

The Text Formatter in Stack is your go-to tool when you need to adjust the format of your data. Whether it's converting cases, trimming text, or extracting specific information, this feature is here to help you get your data just right.

Types of Text Formatters and Their Use Cases

Upper Case

  • Functionality: Converts all characters to uppercase.
  • Use Cases:
    • Standardizing user input for consistency.
    • Ensuring uniform capitalization in messages.

Lower Case

  • Functionality: Converts text to lowercase.
  • Use Cases:
    • Making text comparisons case-insensitive.
    • Uniformity in user-provided content.

Title Case

  • Functionality: Capitalizes the first letter of each word.
  • Use Cases:
    • Enhancing the appearance of titles and headings.
    • Improving readability.

Capitalize

  • Functionality: Capitalizes the first letter of the text.
  • Use Cases:
    • Properly formatting names and titles.
    • Enhancing visual appeal.

Default Value

  • Functionality: Returns a default value if the text is empty; otherwise, returns the text.
  • Use Cases:
    • Providing fallback content.
    • Ensuring consistent responses.

Trim

  • Functionality: Shortens text to a specified length.
  • Use Cases:
    • Enforcing character limits.
    • Creating concise previews or summaries.

Trim Whitespaces

  • Functionality: Removes whitespace from the beginning and end of text.
  • Use Cases:
    • Enhancing readability.
    • Improving content formatting.

Replace Text

  • Functionality: Replaces specified text with a new value.
  • Use Cases:
    • Updating outdated information.
    • Customizing content dynamically.

Find

  • Functionality: Locates the first occurrence of a text pattern.
  • Use Cases:
    • Identifying keywords in content.
    • Extracting relevant information.

Length

  • Functionality: Provides the character count.
  • Use Cases:
    • Enforcing content limits.
    • Analyzing text length.

Extract URL

  • Functionality: Extracts the first URL.
  • Use Cases:
    • Collecting URLs from input.
    • Validating embedded URLs.

Extract Email

  • Functionality: Extracts the first email address.
  • Use Cases:
    • Validating and organizing emails.
    • Extracting contact information.

Word Count

  • Functionality: Counts the words in the text.
  • Use Cases:
    • Monitoring word count.
    • Analyzing text complexity.

Remove HTML Tags

  • Functionality: Strips HTML tags.
  • Use Cases:
    • Cleaning up HTML content.
    • Ensuring proper text rendering.

Split

  • Functionality: Splits text into segments based on a delimiter.
  • Use Cases:
    • Breaking down values.
    • Extracting keywords or phrases.

How to Use the Text Formatter Action

  1. Add an Action:

    • Click the "+" icon to add a new action.
    • Locate the Text Formatter under the "Internal Tools" category or search for it directly.
  2. Select an Action Type:

    • Choose from the list of available Action Types.

Example: Trim Action Type

  • Steps:
    • Select the input text you want to trim.
    • Specify the desired length.
    • Optional: Skip characters from the beginning or add an ellipsis at the end.

Example: Split Action Type

  • Steps:
    • Select the input data to split.
    • Enter the "Separator".
    • Choose which segment to return: First, Second, Last, or Second Last.

With these tools and instructions, you're ready to make the most of the Stack Text Formatter. Enjoy customizing your text with ease!