mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
string changes
This commit is contained in:
parent
b5926cd705
commit
2726a1b161
@ -83,7 +83,7 @@ shorthand:
|
||||
The upper and lower case sets may match both upper and lowercase if the
|
||||
setting to make searches case insensitive is enabled. Such settings are
|
||||
found, for instance in Preferences->Searching in calibre itself and on the
|
||||
Search panel in the calibre :guilabel:`Viewer` as well as the calibre :guilabel:`Edit
|
||||
Search panel in the calibre :guilabel:`E-book viewer` as well as the calibre :guilabel:`Edit
|
||||
book` tool.
|
||||
|
||||
As a last note on sets, you can also define a set as any character *but* those in the set. You do that by including the character ``"^"`` as the *very first character in the set*. Thus, ``[^a]`` would match any character excluding "a". That's called complementing the set. Those escape sequence shorthands we saw earlier can also be complemented: ``"\D"`` means any non-number character, thus being equivalent to ``[^0-9]``. The other shorthands can be complemented by, you guessed it, using the respective uppercase letter instead of the lowercase one. So, going back to the example ``<p[^>]*>`` from the previous section, now you can see that the character set it's using tries to match any character except for a closing angle bracket.
|
||||
|
Loading…
x
Reference in New Issue
Block a user