Question: Can you explain how to use OR, AND and NOT operators in Unix grep command with some examples?
Archive for the ‘RegEx’ Category
Posted by jpluimers on 2015/10/31
Repeating the same expression multiple in RegEx search, and replace it only one time – via: Stack Overflow
Posted by jpluimers on 2015/07/29
While most regex flavours have roughly a similar syntax for the basic features, there is not a clear standard as to the syntax of the replacement strings. Some tools use
\1for referencing strings, others use
$1and so on.
In particular, the placeholder for the nth capture group is
And my comment:
on my question: Read the rest of this entry »
Posted by jpluimers on 2014/12/31
While creating jeroenp / BeSharp.net / source / Native / Delphi / Scripts / GroupProj.xsd — Bitbucket, I bumped into the fact that regular expressions in XSD *or better XML Schema Regular Expressions) regular expressions are a tad different than the RegEx.
That is a great site with Regex Tutorial, Examples and Reference – Regexp Patterns by RegEx guru Jan Goyvaerts (yes, that looks Dutch, but he was born in Belgium and now lives in Phuket) famous for tools like PowerGREP and RegExBuddy. All based on the great Delphi RegEx PCRE library written by Jan and included in Delphi XE and up.
The thing that baffled me most is that even though XML Schema Regular Expressions do not support anchors ^ and $, you still have to escape them.
Posted by jpluimers on 2014/12/30
- http://msdn.microsoft.com/en-us/library/aa833197.aspx (The Regular Expression Generator; Visual Studio)
- http://code.google.com/p/xeger/ (Xeger; Java source code)
I like the name `Xeger`.
Posted by jpluimers on 2013/09/19
You’d think that the regex.info site only has information on Jeffrey Friedl’s Mastering Regular Expressions (a great book on RegEx programming) MRE2 Errata, MRE3 Errata and Where to get egrep (agrep and sourcecode/binary builds).
Not so (:
It also hosts a few other things, mostly having to do with imagery or photography:
- Jeffrey’s Exif viewer, which is a great way of viewing EXIF information on both image URLs, and image files (far better than the Exif-Viewer.com one).
- Jeffrey Friedl’s Blog.
- Jeffrey Friedl’s Blog » Camera Stuff.
- Jeffrey Friedl’s Blog » My Photography Tech Posts.
- Jeffrey Friedl’s Blog » Desktop Backgrounds.
- Jeffrey Friedl’s Blog » Pretty Photos.
- Jeffrey Friedl’s Blog: Photo Proximity Search.
- Jeffrey’s Lightroom Metadata-Viewer Preset Builder.