Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] Regex for dl/dt/dd or table

Quote Reply
Re: [Andy] Regex for dl/dt/dd or table In reply to
Quote:
Monday: 12-14
Tueday: 12-18
Wednesday: 12-18

because we dont have Monday and Sunday always, we need another mark at the begin and end

Quote:
[t]
Monday:12-14
Tueday:12-18
Wednesday:12-18
[/t]

then it should be

Quote:
<table><tr><td>Monday</td><td>12-14</td></tr><tr><td>Tuesday</td><td>12-14</td></tr><tr><td>Wednesday</td><td>12-14</td></tr></table>

Search for: [t] till [/t],
substitute [t] with <table>
then take any row and do
substitute begin with <tr><td>
substitute : with </td><td>
substitute row end with </td></tr> and delete "new line" to have all in one row
substitute [/t] with [/table]

One row is important, because i substitute \n with <br/> also.
Subject Author Views Date
Thread Regex for dl/dt/dd or table Robert 7453 Dec 4, 2017, 8:34 AM
Thread Re: [Robert] Regex for dl/dt/dd or table
Andy 7349 Dec 5, 2017, 12:23 AM
Thread Re: [Andy] Regex for dl/dt/dd or table
Robert 7340 Dec 5, 2017, 3:00 AM
Thread Re: [Robert] Regex for dl/dt/dd or table
Andy 7336 Dec 5, 2017, 4:15 AM
Thread Re: [Andy] Regex for dl/dt/dd or table
Robert 7334 Dec 5, 2017, 6:11 AM
Thread Re: [Robert] Regex for dl/dt/dd or table
Andy 7329 Dec 5, 2017, 7:03 AM
Thread Re: [Andy] Regex for dl/dt/dd or table
Robert 7318 Dec 5, 2017, 2:35 PM
Thread Re: [Robert] Regex for dl/dt/dd or table
Andy 7304 Dec 5, 2017, 11:58 PM
Thread Re: [Andy] Regex for dl/dt/dd or table
Robert 7250 Dec 7, 2017, 4:19 AM
Thread Re: [Robert] Regex for dl/dt/dd or table
Andy 7238 Dec 7, 2017, 10:45 AM
Thread Re: [Andy] Regex for dl/dt/dd or table
Robert 7239 Dec 7, 2017, 11:14 AM
Post Re: [Robert] Regex for dl/dt/dd or table
Robert 7223 Dec 7, 2017, 12:21 PM