09-30-2018, 12:11 PM | #1 |
Enthusiastic reader
Posts: 423
Karma: 3860889
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
|
Help for a tabfile's regex
Hi, I was searching a regex (perhaps for notepad++) that allow me this:
word1TABdefinition1definition1definition1definitio n1definition1 word7TABdefinition7definition7definition7 word8TABdefinition8definition8definition8definitio n8definition8 word9TAB(plural of word7 English) word93TABdefinition93definition93definition93defin ition93definition93 It must become: word1TABdefinition1definition1definition1definitio n1definition1 word7TABdefinition7definition7definition7 word8TABdefinition8definition8definition8definitio n8definition8 word9TAB(plural of word7 English) definition7definition7definition7 word93TABdefinition93definition93definition93defin ition93definition93 Thanks |
09-30-2018, 01:09 PM | #2 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
I think you're gonna need a script for this, not just regex.
|
10-02-2018, 08:27 AM | #3 |
absolute beginner
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Not sure you mean something like
Code:
Search: (.+?)\nword7TAB(.+?)\n(.+?)\n(.+?)\n Replace: \1\nword7TAB\2\n\3\n\4 \2\n |
10-03-2018, 02:24 AM | #4 | |
Enthusiastic reader
Posts: 423
Karma: 3860889
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
|
Quote:
- select all the words that are contained between the terms (plural of and English) in all the file, - select the lines begenning with the same word - copy each line beside the correspondent (plural of....English) Example: finisher n.\n1 A person who finishes or completes something finishers n.\n(plural of finisher English) finishes n.\n(plural of finish English) finishes off vb.\n(en-third-person singular of: finish off) finishest vb.\n(en-archaic second-person singular of: finish) finisheth vb.\n(en-archaic third-person singular of: finish) finishing n.\n1 the act of completing something finish.\nvb.\n(present participle of finish English) finishing line n.\n(alternative form of finish line English) finishing lines n.\n(plural of finishing line English) finishing move n.\n(context video games English) In media such as.... finishing moves n.\n(plural of finishing move English) finishing off vb.\n(present participle of finish off English) Later finisher n.\n1 A person who finishes or completes something finishers n.\n(plural of finisher English) n.\n1 A person who finishes or completes something finishes n.\n(plural of finish English) finishes off vb.\n(en-third-person singular of: finish off) finishest vb.\n(en-archaic second-person singular of: finish) finisheth vb.\n(en-archaic third-person singular of: finish) finishing n.\n1 the act of completing something finish.\nvb.\n(present participle of finish English) finishing line n.\n(alternative form of finish line English) finishing lines n.\n(plural of finishing line English) n.\n(alternative form of finish line English) finishing move n.\n(context video games English) In media such as.... finishing moves n.\n(plural of finishing move English)n.\n(context video games English) In media such as.... finishing off vb.\n(present participle of finish off English) |
|
10-03-2018, 06:50 AM | #5 |
absolute beginner
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Something like this?
Code:
Search: (.+?)n\.(.+?)\n(.+?)(\(plural of (.+?) English\))\n Replace: \1n.\2\n\3\4 n.\2\n |
10-04-2018, 02:01 AM | #6 |
Enthusiastic reader
Posts: 423
Karma: 3860889
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conversion of txt tabfile to mobi | Owl_ | Other formats | 3 | 07-05-2018 02:16 AM |
Need regex help, please | magmanpi | Sigil | 13 | 08-29-2014 04:34 AM |
Need help with a regex | mobiuser | Workshop | 15 | 01-19-2014 05:57 PM |
Help with some regex | Chaos_Therum | Library Management | 1 | 12-28-2013 11:20 AM |
RegEx | el.motar | Sigil | 10 | 12-12-2011 05:54 PM |