|
|
#1 |
|
Jr. - Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 532
Karma: 2000170
Join Date: Aug 2010
Location: East Texas
Device: DXG, K3, Jetbook(+Lite), eSlick, Nook, PRS350, PB301+, PB360
|
Search for asterisks
Regards and thanks - John |
|
|
|
|
|
#2 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
Either switch to "Normal" mode, rather than Regex, or escape them by putting a \ in front of them.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,080
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
|
You have to "escape" it by putting a backslash before it. I.e. search for \*
|
|
|
|
|
|
#4 |
|
Jr. - Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 532
Karma: 2000170
Join Date: Aug 2010
Location: East Texas
Device: DXG, K3, Jetbook(+Lite), eSlick, Nook, PRS350, PB301+, PB360
|
Thanks to both. I'll get the hang of this stuff yet.
Regards - John |
|
|
|
|
|
#5 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,087
Karma: 1211084
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@Jabby - the other thing you can do with the Sigil 0.5.90x releases is turn on the auto tokenising/escaping of ctrl+F text. What this feature does is if you are in Regex mode (where I tend to stay) and select some text and hit ctrl+F it will automatically make it "safe" to use in a regular expression. If you have line feeds/multiple spaces they get converted to \s+. And importantly for this particular question if your selected text contains characters that have special meanings in regular expression like asterisks, periods, brackets etc then they will get automatically escaped with a preceding \ for you.
And yet another way of doing this if you don't have that option on is to right-click on the Find dropdown and choose "Tokenise Selection", which will do a very similar thing (except it also adds converting numbers into \d+). With the tokenising/escaping option turned on I find it extremely rare that I ever have a need to switch back to "Normal" mode for F&R. As to where you enable it, that is a bit complicated by the fact that it has moved for the upcoming 0.5.907 release. If you are using 0.5.905/6 you will find it under Search->Regex Options. As of 0.5.907 all those options have moved to become checkboxes on the F&R dialog itself which are much more accessible and visible.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| More S*** that P***es Me Off [Asterisks added by MR Moderation Team] | ptittle | Author Self-Promotions | 2 | 02-13-2012 04:15 AM |
| Search? | isis | Calibre | 3 | 07-08-2011 07:30 PM |
| Problem using 'Advanced Search' with 'Search in Forum' | Wetdogeared | Feedback | 6 | 06-21-2011 09:37 AM |
| Search Everything | cklammer | Other formats | 3 | 04-14-2010 05:27 PM |
| Google Book Search to search full-text books online | Bob Russell | Deals, Freebies, and Resources (No Self-Promotion) | 1 | 08-19-2006 12:13 PM |