10-11-2012, 10:13 AM | #1 |
Jr. - Junior Member
Posts: 586
Karma: 2000358
Join Date: Aug 2010
Location: Alabama
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
|
Search for asterisks
How do you search for asterisks using F&R ?
Regards and thanks - John |
10-11-2012, 10:21 AM | #2 |
calibre/Sigil Developer
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Either switch to "Normal" mode, rather than Regex, or escape them by putting a \ in front of them.
|
Advert | |
|
10-11-2012, 10:22 AM | #3 |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
You have to "escape" it by putting a backslash before it. I.e. search for \*
|
10-12-2012, 07:10 AM | #4 |
Jr. - Junior Member
Posts: 586
Karma: 2000358
Join Date: Aug 2010
Location: Alabama
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
|
Thanks to both. I'll get the hang of this stuff yet.
Regards - John |
10-12-2012, 08:05 AM | #5 |
calibre/Sigil Developer
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@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. |
Advert | |
|
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 | Self-Promotions by Authors and Publishers | 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 and Resources (No Self-Promotion or Affiliate Links) | 1 | 08-19-2006 12:13 PM |