Android Apps | After The Deadline | Ballarat Fire Brigade | Blip.fm | Blackboard | Cool Stickers | Deviantart | EDAR308 | EDFD452 | email | Fractals | ghotit.com | Gimp 2 | Google | ICT leaders day - Nov 2010
| LTC Conference | Markbook | Movie Maker | Photography | Photoshop CS3 | Processing | RedBubble | Smartpen | Tutorials | WebQuests | mview | Weather
Home > Tutorials > Regular Expressions
According to the Wikipedia:
A regular expression is a string that describes or matches a set of strings, according to certain syntax rules. Regular expressions are used by many text editors and utilities to search and manipulate bodies of text based on certain patterns.
For a set of useful looking tools see http://global-search-and-replace.qarchive.org/
| Editor | URL | Comments |
| EditPad Pro | Home page http://www.editpadpro.com/download.html |
EditPad Pro's regex flavor is almost identical to the one used in Perl 5. Only the extensions that only make sense in a programming language are not available. All regex operators explained in the tutorial on this website are available in EditPad Pro. EditPad Pro integrates with RegexBuddy. You can instantly fire up RegexBuddy to edit the regex you want to use in EditPad Pro, or select one from a RegexBuddy library. |
| jEdit | http://www.jedit.org/ | GNU General Public License. |
| Note Tab Pro | http://www.notetab.com/ | Very powerful disk wide search and replace feature |
| Text Pad | http://www.textpad.com/ | Nice clean interface. Not able to search for regular expressions within files see WildEdit or Note Tab if you want to do a global search and replace on a set of files. |
| WildEdit | http://www.textpad.com/products/wildedit | I have yet to use this tool but it sounds like it does a similar job to the Note Tab Pro An interactive tool for power users to edit a set of text files in a folder hierarchy, filtered by wildcards. This makes it ideal for editing web pages and software source code, or reformatting log files and newsletters. |
| EngInSite Perl Editor Lite (2,77 MB) - Free! |
| Expression | Examples | Use |
| <a name="(.*)"> | <a name="XSLTpbhabcabcbbcabca"> <a name="a-b-a-d-"> |
To match anchor tags in a HTML document |
| <a name=".*">\n.*</a>\n | <a name="a-b-a-d-"> |
match anchor tag with closing <\a> on following line |
| <td(.*)> | <td style="padding: 0in 5.4pt; width: 144.65pt;" valign="top" width="241"> |
to match style tags used in tables |
| Expression | Examples | Comments |
perl -0777 -pi -e 's/<\/?FONT[^>]*>//gi' filename |
||
| # remove font tags s/<\/?FONT[^>]*>//gi; |
Replaces this : <font size=2>Hi there. <b>Hey! I'm bold!</b> Plain again.</font> With this : Hi there. <b>Hey! I'm bold!</b> Plain again. |
Thanks to |
See ClipWriter http://www.dataomega.com/ClipWriter/
| Expression | Examples | Use |
| ^!Replace "(^\w\w)\w* (\w*)" >> $1$2 RWAS | Replace: Sarah Kelly With: SaKelly |
To make user names from full names
|
Perl Ports (Binary Distributions)
Perl regular expression examples
APA citation:
Russell, R. (2008, May 11, 03:19 am). REgular expressions.
Retrieved May 22, 2012, from http://www.rupert.id.au/tutorials/regular-expressions/index.php
Last refreshed: May 22 2012. 11:47.17 am
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.