string-helper
Reactive icon

String Helper

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 28 Sep (4 weeks ago)
 by 
0.0
 (0 ratings)
string-helper

String Helper

Documentation
1.0.0

Here’s a structured documentation section with short descriptions, input/output details, and examples (no code snippets) for each function group. This is Forge-ready and can also go into your README:


📥 Installation & Configuration

Download & Install

  • Install from OutSystems Forge or download the .oap file and publish via Service Studio or Service Center.

Add to Your App

  • In Service Studio, open your app → Manage Dependencies → search for StringHelpers → select actions → Apply.

No Extra Configuration

  • Plug-and-play. No extra setup required.

▶ How to Use

All functions are exposed as Server Actions under the StringHelpers module. Drag and drop into your logic, provide inputs, and use outputs.


✅ Function Reference with Examples

Trimming & Whitespace

  • TrimLeft / TrimRight / TrimBoth
    Description: Remove characters from start, end, or both ends.
    Input: Text, optional characters to trim.
    Output: Trimmed text.
    Example: Input: "##Hello##", TrimBoth with "#" → Output: "Hello"  

  • CollapseSpaces
    Description: Replace multiple spaces with a single space.
    Example: Input: "A   B   C" → Output: "A B C"  


Casing & Comparison

  • ToTitle / ToLower / ToUpper
    Description: Change text case.
    Example: Input: "hello world" → Output: "Hello World"  

  • ToggleCase
    Description: Switch uppercase to lowercase and vice versa.
    Example: Input: "AbC" → Output: "aBc"  

  • Equal / Compare
    Description: Compare two strings (case-insensitive by default).
    Example: Input: "Test", "test" → Output: True  


Regex Helpers

  • RegexMatch
    Description: Check if text matches a pattern.
    Example: Input: "abc123", Pattern: \\d+ → Output: True  

  • RegexReplace
    Description: Replace pattern matches with text.
    Example: Input: "abc123", Replace digits with "-" → Output: "abc-"  

  • RegexExtractAll
    Description: Extract all matches as a list.
    Example: Input: "a1b2c3", Pattern: \\d → Output: ["1","2","3"]  


Encoding & Normalization

  • Base64Encode / Base64Decode
    Example: Input: "Hello" → Output: "SGVsbG8="  

  • UrlEncode / UrlDecode
    Example: Input: "a b" → Output: "a%20b"  

  • HtmlEncode / HtmlDecode
    Example: Input: "<b>text</b>" → Output: "&lt;b&gt;text&lt;/b&gt;"  

  • RemoveDiacritics
    Example: Input: "Résumé" → Output: "Resume"  


Text Operations

  • Left / Right / Mid
    Example: Input: "abcdef", Left(3) → Output: "abc"  

  • Reverse
    Example: Input: "abc" → Output: "cba"  

  • Repeat
    Example: Input: "Hi", Count: 3 → Output: "HiHiHi"  

  • PrefixText / AppendText
    Example: Input: "World", Prefix: "Hello " → Output: "Hello World"  


Validation

  • IsNullOrEmpty / IsNumeric / IsAlpha / IsAlphanumeric
    Example: Input: "12345" → Output: True for IsNumeric  

  • IsPalindrome
    Example: Input: "madam" → Output: True  


Formatting

  • Split / Join
    Example: Input: "a,b,c", Delimiter: "," → Output: ["a","b","c"]  

  • PadLeft / PadRight
    Example: Input: "7", PadLeft(3,'0') → Output: "007"  


Similarity

  • Levenshtein
    Example: Input: "kitten","sitting" → Output: 3  

  • Jaro
    Example: Input: "MARTHA","MARHTA" → Output: 0.944  


Generation

  • GenerateGuid
    Example: Output: "550e8400-e29b-41d4-a716-446655440000"  

  • GenerateRandomString
    Example: Length: 8 → Output: "aZ3xT9bQ"  


File Type Detection

  • GetFileType
    Example: Input: PDF file bytes → Output: ".pdf"  

Notes

  • All operations are server-side and optimized for performance.
  • Random string and password generators are non-cryptographic.