Projekt unijny
„SZYTE NA MIARĘ”
About regular expressions

To search for text containing one of the special characters in the table, "escape" the special character by preceding it with a backslash. For example, to search for the actual asterisk in the phrasesome conditions apply*, your search pattern might look like this:apply\*. If you don't escape the asterisk, you'll find all the occurrences of "apply" (as well as any of "appl", "applyy", and "applyyy"), not just the ones followed by an asterisk.

CharacterMatchesExample

^

Beginning of input or line.

^Tmatches "T" in "This good earth" but not in "Uncle Tom's Cabin"

$

End of input or line.

h$matches "h" in "teach" but not in "teacher"

*

The preceding character 0 or more times.

um*matches "um" in "rum", "umm" in "yummy", and "u" in "huge"

+

The preceding character 1 or more times.

um+matches "um" in "rum" and "umm" in "yummy" but nothing in "huge"

?

The preceding character at most once (that is, indicates that the preceding character is optional).

st?onmatches "son" in "Johnson" and "ston" in "Johnston" but nothing in "Appleton" or "tension"

.

Any single character except newline.

.anmatches "ran" and "can" in the phrase "bran muffins can be tasty"

x|y

Either x or y.

FF0000|0000FFmatches "FF0000" inbgcolor="#FF0000"and "0000FF'" infont color="#0000FF"

{n}

Exactly n occurrences of the preceding character.

o{2}matches "oo" in "loom" and the first two o's in "mooooo" but nothing in "money"

{n,m}

At least n and at most m occurrences of the preceding character.

F{2,4}matches "FF" in "#FF0000" and the first four F's in #FFFFFF

[abc]

Any one of the characters enclosed in the brackets. Specify a range of characters with a hyphen (for example, [a-f] is equivalent to [abcdef]).

[e-g]matches "e" in "bed", "f" in "folly", and "g" in "guard"

[^abc]

Any character not enclosed in the brackets. Specify a range of characters with a hyphen (for example, [^a-f] is equivalent to [^abcdef]).

[^aeiou]initially matches "r" in "orange", "b" in "book", and "k" in "eek!"

\b

A word boundary (such as a space or carriage return).

\bbmatches "b" in "book" but nothing in "goober" or "snob"

\B

A nonword boundary.

\Bbmatches "b" in "goober" but nothing in "book"

\d

Any digit character. Equivalent to [0-9].

\dmatches "3" in "C3PO" and "2" in "apartment 2G"

\D

Any nondigit character. Equivalent to [^0-9].

\Dmatches "S" in "900S" and "Q" in "Q45"

\f

Form feed.

Ż

\n

Line feed.

Ż

\r

Carriage return.

Ż

\s

Any single white-space character, including space, tab, form feed, or line feed.

\sbookmatches "book" in "blue book" but nothing in "notebook"

\S

Any single non-white-space character.

\Sbookmatches "book" in "notebook" but nothing in "blue book"

\t

A tab.

Ż

\w

Any alphanumeric character, including underscore. Equivalent to [A-Za-z0-9_].

b\w* matches "barking" in "the barking dog" and both "big" and "black" in "the big black dog"

\W

Any non-alphanumeric character. Equivalent to [^A-Za-z0-9_].

\W matches "&" in "Jake & Mattie" and "%" in "100%"

Control+Enter or Shift+Enter (Windows), or Control+ Return or Shift+Return or Command+ Return (Macintosh)

Return character. Be sure to deselect the Ignore Whitespace Differences option when searching for this, if not using regular expressions. Note that this matches a particular character, not the general notion of a line break; for instance, it doesn't match a<br>tag or a<p>tag. Return characters appear as spaces in the Document window, not as line breaks.

Ż

Use parentheses to set off groupings within the regular expression to be referred to later; use $1, $2, $3, and so on (use ($) in the Find field and use the backslash (\) in the Replace field), to refer to the first, second, third, and later parenthetical groupings. For example, searching for (\d+)\/(\d+)\/(\d+) and replacing it with $2/$1/$3 swaps the day and month in a date separated by slashes (to convert between American-style dates and European-style dates).

alt
Szkoła Podstawowa nr 3
im. M. Kopernika
ul. Ogrodowa 48
43-170 Łaziska Górne

alt tel./fax. +48 322241066
alt e-mail gim1-laziska@oswiata.org.pl
alt e-mail sekretariat.gim1@wp.pl
PROJEKTY I PRZEDSIĘWZIĘCIA
Szyte na miarę – oferta edukacyjna dostosowana do potrzeb
łaziskich uczniów.”

Projekt współfinansowany ze środków
Europejskiego Funduszu Społecznego
w ramach Regionalnego Programu
Operacyjnego Województwa Śląskiego
na lata 2014-2020.
alt

Program PO WER
„Nowoczesny i kreatywny nauczyciel
to lepsza przyszłość ucznia ”

Europejski Fundusz Społeczny
Program Operacyjny
Wiedza Edukacja Rozwój
alt

50-lecie szkoły
1965-2015


Laboratorium przedsiębiorczości
i technologii

alt
alt Prezentacja projektu (32MB)


SZTAB WOŚP
(jedyny w Łaziskach Górnych)
alt
Szkoła Odkrywców Talentów
alt
Szkoła partnerska
alt

GOLDEN5
alt

SZKOŁA PROMUJĄCA ZDROWIE
alt

ZIELONY CERTYFIKAT
alt
alt
alt
alt
RATUJEMY ZWIERZĘTA
alt
CHRONIMY PRZYRODĘ
alt

Projekt unijny
„SZYTE NA MIARĘ”
Valid XHTML 1.0 StrictPoprawny CSS!
Copyright (c) 2009-2018. Szkoła Podstawowa nr 3 im. Mikołaja Kopernika. All rights reserved.