Publicité
← Retour

Guide des Outils Texte

Comment traiter, nettoyer et transformer efficacement les données textuelles.

Publicité

Developers process text constantly — comparing config files, cleaning log data, sorting lists, counting characters for API limits. The right tool turns a 10-minute manual task into 10 seconds.

Text Diff

Uses the Myers diff algorithm to find the minimum set of changes between two inputs. Essential for comparing API responses, config files, or log outputs — without needing a full IDE.

Regular Expressions

/^[\w.-]+@[\w.-]+\.[a-z]{2,}$/i  // Email validation
/https?:\/\/[^\s]+/g              // Extract URLs
/\d{4}-\d{2}-\d{2}/              // ISO dates (YYYY-MM-DD)
/\b(?:\d{1,3}\.){3}\d{1,3}\b/  // IP addresses

// Flags: g=global  i=case-insensitive  m=multiline  s=dotAll

Case Conversion Reference

  • camelCase — JS variables: myVariableName
  • PascalCase — Class names: MyClassName
  • snake_case — Python/DB: my_variable_name
  • kebab-case — CSS/URLs: my-variable-name
  • SCREAMING_SNAKE — Constants: MY_CONSTANT

Frequently Asked Questions

How do I remove duplicate lines?

Use the Remove Duplicate Lines tool, or on the command line: sort file.txt | uniq > output.txt

How many tokens is my text?

Roughly 1 token per 0.75 English words, or ~4 characters. A 1000-word article ≈ 1300 tokens for GPT-style models.

What does the word counter count?

Words (split on whitespace), characters (with and without spaces), sentences (split on . ! ?), paragraphs (blank-line separated), and reading time estimate.