Intro - Chapter: 0:History 1:Design 2:Basics 3:Var 4:Op 5:IO 6:Block 7:Sub 8:OOP 9:Rx 10:Meta Overview - Appendix: A:Index B:Tables C:Cook D:Delta E:Best of F:Links G:Glossary
Larry Wall: We put the "Regular" back into "Expression".
Like quotes, are Regular Expressions now a sublanguage, a language inside the language, instead of being just funny strings. They are parsed by a completely different set of rules, which are stored in the special variable $~Regex ($~Trans for transliterations and $~P5Regex for compatible Regexes). But these rules are made much more consistant with the main language than before.
Every alphanumeric character has no special meaning and stand for the character visible. If a backslash (\) is standing directly in front of the character it becomes a metacharacter. For not alphanumeric chars the opposite is true. Inside of quotes every char is literal.
table
rx/.../ aka Q :regex /.../ m/.../ aka Q :match /.../ ms/.../ aka Q :match :sigspace /.../.../ s/.../.../ aka Q :subst /.../.../ ss/.../.../ aka Q :subst :samespace /.../.../ tr/.../.../ aka Q :trans /.../.../
comb match subst trans
$/ $<..> $() $0 ..
my $escaped = $html.trans( [ '&', '<', '>' ] => [ '&', '<', '>' ] );
[ '&', '<', '>' ] => [ '&', '<', '>' ]
Are listed here. <prior> is somehow an exception.
all slang variables
Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.
Maximum file size: 50MB
Enter a meaningful and distinctive title for your page.
Page Title:
Tip: You'll be able to find this page later by using the title you choose.
There is already a page named XXX. Would you like to:
Save with a different name:
Save the page with the name "XXX"
Append your text to the bottom of the existing page named: "XXX"
Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.
Enter a tag and click "Add tag". The tag will be saved when you save the page.
Tag: