Text Processing with JavaScript: Regular Expressions, Tools, and Techniques for Optimal Performance
暫譯: 使用 JavaScript 進行文本處理:正則表達式、工具與最佳性能技術

Kelhini, Faraz

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2024-01-23
  • 售價: $1,770
  • 貴賓價: 9.5$1,682
  • 語言: 英文
  • 頁數: 242
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798888650332
  • ISBN-13: 9798888650332
  • 相關分類: JavaScript
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

You might think of regular expressions as the holy grail of text processing, but are you sure you aren't just shoehorning them in where standard built-in solutions already exist and would work better? JavaScript itself provides programmers with excellent methods for text manipulation, and knowing how and when to use them will help you write more efficient and performant code. From extracting data from APIs to calculating word counts and everything in between, discover how to pick the right tool for the job and make the absolute most of it every single time.

Whether you're a beginner or an advanced programmer, this up-to-date guide will save you a ton of time when dealing with text. With Text Processing with JavaScript, you'll find a collection of tiny programs, each demonstrating a string manipulation approach in JavaScript. You'll also focus squarely on the practical aspects of text processing with JavaScript - that is, what each technique is designed to accomplish and how to use it in your program.

Discover how to extract data from APIs and web pages, apply spelling corrections, convert and format currencies, and remove HTML tags from text. Learn to intersect tables, copy text to the clipboard, extract lists from text, and highlight sentences that contain a specific word. Find duplicate words and fix them automatically, modify a copy of an existing regex literal, match the beginning or end of a string, and remove all comments from JavaScript and HTML files with ease. Match non-ASCII words, calculate the word count of an article in any language, and more.

Become a JavaScript expert and master chef of text processing with this collection of hands-on and production-ready recipes.

商品描述(中文翻譯)

您可能會將正則表達式視為文本處理的聖杯,但您確定自己不是在將它們強行應用於已經存在且效果更佳的標準內建解決方案上嗎?JavaScript 本身為程序員提供了出色的文本操作方法,了解如何以及何時使用它們將幫助您編寫更高效和性能更佳的代碼。從從 API 中提取數據到計算字數以及其他所有相關操作,了解如何為工作選擇合適的工具,並每次都充分利用它。

無論您是初學者還是進階程序員,這本最新指南將在處理文本時為您節省大量時間。在《使用 JavaScript 進行文本處理》中,您將找到一系列小程序,每個程序都展示了 JavaScript 中的一種字符串操作方法。您還將專注於 JavaScript 文本處理的實用方面——即每種技術旨在實現的目標以及如何在您的程序中使用它。

了解如何從 API 和網頁中提取數據,應用拼寫修正,轉換和格式化貨幣,並從文本中移除 HTML 標籤。學習如何交集表格,將文本複製到剪貼板,從文本中提取列表,以及突出顯示包含特定單詞的句子。找到重複的單詞並自動修正,修改現有正則表達式字面量的副本,匹配字符串的開頭或結尾,並輕鬆移除 JavaScript 和 HTML 文件中的所有註釋。匹配非 ASCII 單詞,計算任何語言文章的字數,等等。

成為 JavaScript 專家,並掌握文本處理的廚師,通過這一系列實用且可投入生產的食譜。

最後瀏覽商品 (20)