regex:all_text_not_containing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
regex:all_text_not_containing [2025/05/27 07:52] – peter | regex:all_text_not_containing [2025/05/27 07:55] (current) – peter | ||
---|---|---|---|
Line 62: | Line 62: | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE:** |
* **(** - Start a group for the purposes of repeating. | * **(** - Start a group for the purposes of repeating. | ||
Line 68: | Line 68: | ||
* **[/\w.-]** - The pattern for matching a URL character. | * **[/\w.-]** - The pattern for matching a URL character. | ||
* **)+** - Repeat the group. | * **)+** - Repeat the group. | ||
+ | |||
+ | |||
+ | To force it to match the entire string, anchor the entire pattern with **^** at the start and **$** at the end; otherwise it is free to only match a portion of the string. With this change, it becomes: | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
</ | </ |
regex/all_text_not_containing.1748332350.txt.gz · Last modified: 2025/05/27 07:52 by peter