php
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| php [2021/05/01 11:35] – created admin | php [2021/05/02 11:26] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ## Simulate a php server on Mac | ## Simulate a php server on Mac | ||
| - | Open terminal | + | Open terminal\\ |
| - | cd to folder | + | cd to folder\\ |
| - | Start php server | + | Start php server ```php -S 127.0.0.1: |
| - | Open browser and enter ````http:// | + | Open browser and enter ```http:// |
| + | |||
| + | |||
| + | ## Regular Expression | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ### Flags | ||
| + | |||
| + | https:// | ||
| + | |||
| + | There are only 6 of them in JavaScript: | ||
| + | < | ||
| + | i | ||
| + | With this flag the search is case-insensitive: | ||
| + | g | ||
| + | With this flag the search looks for all matches, without it – only the first match is returned. | ||
| + | m | ||
| + | Multiline mode (covered in the chapter Multiline mode of anchors ^ $, flag " | ||
| + | s | ||
| + | Enables “dotall” mode, that allows a dot . to match newline character \n (covered in the chapter Character classes). | ||
| + | u | ||
| + | Enables full Unicode support. The flag enables correct processing of surrogate pairs. More about that in the chapter Unicode: flag " | ||
| + | y | ||
| + | “Sticky” mode: searching at the exact position in the text (covered in the chapter Sticky flag " | ||
| + | </ | ||
php.1619840132.txt.gz · Last modified: (external edit)
