Forem

Long Nguyễn Xuân
Long Nguyễn Xuân

Posted on

highlight tất cả các đoạn văn nằm giữa dấu ngoặc đơn, ngoặc vuông, ngoặc nhọn

Đôi khi chúng ta sẽ cần phải "tìm" và "đánh dấu" những đoạn văn nằm giữa các cặp dấu đặc biệt, vd như ngoặc đơn () , ngoặc vuông [], ngoặc nhọn {} trong MSWord

lúc này mình sẽ cần mở cửa sổ Thay thế lên, bằng phím Ctrl H,
sau đó nhập vào \[(*)\]
trong đó:

  • \[ là token thứ nhất, cái này để Word tìm cái ngoặc vuông, trong đó cái dấu xẹt trái, nó là "escape character", giúp Word có thể tìm dc ký tự dấu ngoặc vuông vì dấu này là "ký tự đặc biệt",
  • (*) là token thứ hai là để Word tìm tất cả các ký tự cho đến khi tìm dc "token" tiếp theo
  • \] là token thứ ba và lại là escape character để Word kết thúc cái chuỗi tìm kiếm

Tick vào Use Wild card để Word hiểu dc cái đoạn ở trên.
chỗ Format bạn chọn highlight hoặc định dạng bạn thích.

Replace All và enjoy

(*) token là cái gì thì cũng hơi khó giải thích, bạn cứ hiểu đơn giản nó là "bộ phận của một đoạn text sử dụng trong lập trình" là dc.

Image description

thanks bài gốc

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay