04-12-2014, 09:26 AM | #1 |
Connoisseur
Posts: 82
Karma: 73150
Join Date: Feb 2011
Location: Scottish Highlands
Device: Samsung Note, Kindle, hudl2
|
Regex/Grep and wildcards
Hi All,
Stupid newbie question number ... eh? ... whatever. Using Regex in Sigil I can find (\d+) I would usually put $1 to replace the number it found. This works in Grep but not in Regex? Are Grep and Regex in any way different? Please be gentle once you have picked yourself off the floor. Cheers, John. |
04-12-2014, 09:48 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Instead of $1 use \1. That is the normal RegEx way.
|
04-12-2014, 11:32 AM | #3 |
Connoisseur
Posts: 82
Karma: 73150
Join Date: Feb 2011
Location: Scottish Highlands
Device: Samsung Note, Kindle, hudl2
|
Thanks! New it had to be simple, but couldn't find it in the plethora of other information.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Wildcards/Regex Find/Replace | Adman35 | Sigil | 7 | 08-16-2014 01:02 PM |
More fun with regex / wildcards | zelda_pinwheel | Sigil | 28 | 01-06-2013 09:57 AM |
GREP search term help | virtual_ink | Workshop | 2 | 11-08-2011 12:57 AM |
Another Grep Question | Fabe | Sigil | 4 | 12-13-2010 04:51 PM |
Grep Find & Replace | Fabe | Sigil | 3 | 12-06-2010 12:00 PM |