« first day (3166 days earlier)      last day (951 days later) » 

 
1 hour later…
8:35 AM
-1
Q: How to match charater at the beginning of text with optional whitespace?

SpaghettiChefI'm making a text editor/note-taking application and I'm adding some formatting options. One of them is the ability to "quote" My regular expression looks like this: ^>.* This matches: >hello world!, but not: >hello world! (at beginning is space) Also I do not want it to match something like <div><

0
Q: BASH - SED insert new line before last, containing tab and variable

TomI'm trying to insert a new line into a file just before the last line. The new line includes tab and a variable. Using the following. This inserts the line at the correct place, includes the tab but doesn't expand the variable. sed '$i \\tnewline = $newvalue' file If I wrap it in double quotes ...

 
 
7 hours later…

« first day (3166 days earlier)      last day (951 days later) »