List of Regular Expressions

අක්ෂර වලට

Result/Use

අක්ෂර වලට

Represents the given character unless otherwise specified.

.

Represents any single character except for a line break or paragraph break. For example, the search term "sh.rt" returns both "shirt" and "short".

^

Only finds the search term if the term is at the beginning of a paragraph. Special objects such as empty fields or character-anchored frames, at the beginning of a paragraph are ignored. Example: "^Peter".

$

Only finds the search term if the term appears at the end of a paragraph. Special objects such as empty fields or character-anchored frames at the end of a paragraph are ignored. Example: "Peter$".

$ on its own matches the end of a paragraph. This way it is possible to search and replace paragraph breaks.

*

Finds zero or more of the characters in front of the "*". For example, "Ab*c" finds "Ac", "Abc", "Abbc", "Abbbc", and so on.

+

Finds one or more of the characters in front of the "+". For example, "AX.+4" finds "AXx4", but not "AX4".

The longest possible string that matches this search pattern in a paragraph is always found. If the paragraph contains the string "AX 4 AX4", the entire passage is highlighted.

?

Finds zero or one of the characters in front of the "?". For example, "Texts?" finds "Text" and "Texts" and "x(ab|c)?y" finds "xy", "xaby", or "xcy".

\

Search interprets the special character that follows the "\" as a normal character and not as a regular expression (except for the combinations \n, \t, \>, and \<). For example, "tree\." finds "tree.", not "treed" or "trees".

\n

Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter \n in the Find and Replace boxes, and then perform a search and replace.

\n in the Find text box stands for a line break that was inserted with the Shift+Enter key combination.

\n in the Replace text box stands for a paragraph break that can be entered with the Enter or Return key.

\t

Represents a tab. You can also use this expression in the Replace box.

\b

Match a word boundary. For example, "\bbook" finds "bookmark" but not "checkbook" whereas "book\b" finds "checkbook" but not "bookmark". The discrete word "book" is found by both search terms.

^$

Finds an empty paragraph.

^.

චේදයක පළමු අක්ශරය සොයන්න

& or $0

Adds the string that was found by the search criteria in the Find box to the term in the Replace box when you make a replacement.

For example, if you enter "window" in the Find box and "&frame" in the Replace box, the word "window" is replaced with "windowframe".

You can also enter an "&" in the Replace box to modify the Attributes or the Format of the string found by the search criteria.

Suggestion by jaithMit:[abc123]

වරහන් තුල වු වචනයක් නියෝජනය කරයි.

[a-e]

Represents any of the characters that are between a and e, including both start and end characters

The characters are ordered by their code numbers.

[a-eh-x]

a-e සහ h-x අතර වු ඕනැම වචනයක් නිරුපනය කරයි

[^a-s]

a සහ s අතර නොවු ඕනැම වචනයක් නිරුපනය කරයි

\uXXXX

\UXXXXXXXX

Represents a character based on its four-digit hexadecimal Unicode code (XXXX).

For obscure characters there is a separate variant with capital U and eight hexadecimal digits (XXXXXXXX).

For certain symbol fonts the code for special characters may depend on the used font. You can view the codes by choosing Insert - Special Character.

|

Finds the terms that occur before the "|" and also finds the terms that occur after the "|". For example, "this|that" finds "this" and "that".

{2}

වරහන් විවෘත කිරීමේ සලකුණ[{] ඉදිරියේ සඳහන් විය හැකි අක්ෂර වාර ගණන අර්ථ දක්වන්න.උදාහරනයක් වශයෙන්, "tre{1,2}" යන්න "tree" සහ "treated" යන වචන ද්විත්වයම සොයයි.

{1,2}

‍‍වරහන් විවෘත කිරීමේ සලකුණ[{] ඉදිරියේ සඳහන් විය හැකි අවම අක්ෂර වාර ගණන අර්ථ දක්වන්න.උදාහරනයක් වශයෙන්,"tre{2,}" යන්න "tree","treee" සහ "treeeee" සොයයි.

{1,}

‍‍වරහන් විවෘත කිරීමේ සලකුණ[{] ඉදිරියේ සඳහන් විය හැකි අවම අක්ෂර වාර ගණන අර්ථ දක්වන්න.උදාහරනයක් වශයෙන්,"tre{2,}" යන්න "tree","treee" සහ "treeeee" සොයයි.

( )

In the Find box:

නිර්දේෂ කිරීමක් වශයෙන් වරහන් තුල වු අක්ෂර අර්ථ දක්වන්න.ඉන් පසු ඔබට වර්ථමාන ප්‍රකශය සඳහා "\1",ලෙසද දෙවන ප්‍රකශය සඳහා "\2" යනාදී ලෙස භාවිතා කල හැකිය.

උදාහරනයක් වශයෙන්,ඔබගේ වගන්තියේ 13487889 යන අංකය අන්තර්ගත වේ නම් සහ ඔබ විධිමත් ලෙස (8)7\1\1 භවිතා කරමින් search කරයි නම් "8788" සොයා ගනු ලැබේ.

එසේම ඔබට වචන කාණ්ඩගත කිරීම සඳහා () භාවිතා කළ හැකිය.උදාහරනයක් වශයෙන්,"a(bc)?d" යන්න "ad" හෝ "abcd" සොයා ගනී.

In the Replace box:

නිර්දේශ කිරීම ප්‍රථිස්තාපනය කිරීමට \ ලකුණ වෙනුවට $(ඩොලර්) ලකුණ භාවිතා කරන්න.සොයන ලද වචනය ප්‍රතිස්ථාපනය කිරීමට $0 භාවිතා කරන්න.

[:alpha:]

Represents an alphabetic character. Use [:alpha:]+ to find one or more of them.

[:අංකය:]

Represents a decimal digit. Use [:digit:]+ to find one or more of them.

[:alnum:]

අක්ෂරාංකයක් නියොජනය කරන්න.([:alpha:] සහ [:අංකය:])

[:අවකශය:]

අවකශයක් නියොජනය කරයි.(නමුත් අනෙක් හිස් අවකශ නොවේ.)

[:මු‍ද්‍රණය කරන්න:]

මු‍ද්‍රණය කළ හැකි අක්ෂරයක් නියොජනය කරයි.

[:cntrl බටනය:]

මු‍ද්‍රණය නොකරන අක්ෂරයක් නියොජනය කරයි.

[:lower:]

Represents a lowercase character if Match case is selected in Options.

[:upper:]

Represents an uppercase character if Match case is selected in Options.


උදාහරණය

e([:digit:])? -- finds 'e' followed by zero or one digit. Note that currently all named character classes like [:digit:] must be enclosed in parentheses.

^([:digit:])$ -- finds lines or cells with exactly one digit.

You can combine the search terms to form complex searches.

To find three-digit numbers alone in a paragraph

^[:digit:]{3}$

^ means the match has to be at the start of a paragraph,

[:digit:] matches any decimal digit,

{3} means there must be exactly 3 copies of "digit",

$ means the match must end a paragraph.