[Regex-and-stack-overflowfilter]: Can you help me identify abc a.b.c. a.b.c a_b_c ab_c a_b.c. and any permutation of those characters? More below the fold.
[more inside]
posted by Nanukthedog
on May 1, 2013 -
11 answers
I tried to search a database at the place I volunteer with REGEX, but it didn't work. The database interface has some built-in options to search, so I have been messing with those trying to figure out what conventions it will allow. Can you tell me what this is?
[more inside]
posted by Nattie
on Apr 23, 2013 -
7 answers
I'm trying to work out how to use something like grep or sed or awk (or maybe even some Perl) to extract a string of characters which appears in a predictable place in a series of text files. Help/advice/tutorials very welcome!
[more inside]
posted by infinitejones
on Mar 15, 2013 -
8 answers
"Some people, when confronted with a problem, think 'I know, I'll use %s' Now they have %d problems." How many variations on this joke do you know?
posted by ecmendenhall
on Feb 26, 2013 -
19 answers
I need a regex that will recursively match anything after a forward slash to the end of a URL.
[more inside]
posted by dozo
on Jun 21, 2012 -
15 answers
Help me prep as an applicant in an imaginary interview for a junior programming position centered around Linux shell scripts, PHP, and Python, with an emphasis on processing text and URLs (availability, routing, etc).
[more inside]
posted by jsturgill
on Oct 17, 2011 -
10 answers
I have a brain-block when it comes to Regex and really need to learn it. Can anybody suggest really good tutorials with little exercises to reinforce the info? I've tried so many times to get a grasp and it just escapes me and would be invaluable for school/work since I'm doing a lot of string processing in Perl and PHP. Thanks!
posted by Raichle
on Apr 8, 2011 -
11 answers
I'm looking for a text editor or word processor for the iPhone that can do things like search for and remove newlines, or replace tabs with five spaces or vice versa.
[more inside]
posted by lore
on Jan 17, 2011 -
2 answers
My users are likely to enter "oo-11" in a form field when saving data, but search for "oo11" or "o-o11". The hyphen is not important to the data itself. To keep things tidy, I strip the hyphen when saving the data, and strip the hyphen from the search term. I now have a problem with that system.
[more inside]
posted by maxwelton
on Dec 31, 2010 -
12 answers
Help me search and replace all instances of a word that are not preceded by another specific word.
[more inside]
posted by oliverst
on Sep 10, 2010 -
8 answers
Regexfilter: I need help filtering a RSS feed with regular expressions in Yahoo Pipes. Specifics inside.
[more inside]
posted by sharkfu
on Apr 23, 2010 -
4 answers
Regular Expressions: How can I get my two subexpressions to match repeatedly? Right now my pattern matches the first instances but refuses to match anything after it.
[more inside]
posted by cowbellemoo
on Jul 12, 2009 -
6 answers
I'm a librarian who uses Yahoo Pipes in combination with RSS feeds for new books from Amazon to order books. The title tags in each individual item begin as in this example: "#1: A. Lincoln: A Biography". I would like to add a regex expression that will strip out the ranking (#1: or #10:) out of the title so that I can sort the book titles. What I want to remove is the # sign, the ranking number (one or two digit number), and the colon. Any help would be appreciated.
posted by jingo74
on Apr 3, 2009 -
4 answers
I'm trying to use Regular Expressions in Textmate to do a Find/Replace. The goal: Find id="1", id="2", id="3", etc. and Replace with a value of +14, so that I replace yields id="15", id="16", id="17" etc. Thank you!
[more inside]
posted by pinto
on Mar 18, 2009 -
14 answers
I have a .csv of names and email addresses in the format: email,firstname,lastname. Some of the names are in ALL CAPS, some are Properly Capitalized. Is there a way to fix the ALL CAPS names in one fell swoop using BBEdit? I'm not a grep/regex guy, so I appreciate your help.
posted by griseus
on Jan 19, 2009 -
10 answers
regex question. I want to take a list of lines that look like this:
This Here is a Title one or more words long / www.something.com
and turn it into a list of lines that look like this:
<a href="http://www.something.com/" title="This Here is a Title one or more words long"> </a>
I have no idea how to do this, though.
posted by Grod
on Sep 10, 2008 -
12 answers
Conditional search engine selection in Firefox search box based on contents (in particular, character set) of the search query?
[more inside]
posted by qvtqht
on Aug 7, 2008 -
5 answers
I’m at the end of my rope trying to figure out how to write a find/replace expression in MS Word (syntax is similar to regex)
[more inside]
posted by agent99
on Jul 7, 2008 -
6 answers
RegExFilter: Can any regular expression ninjas help me with my this teensy problem?
[more inside]
posted by ReiToei
on Jun 18, 2008 -
6 answers
Not quite getting how mod_rewrite regex works when flatting urls with multiple variables.
[more inside]
posted by Jezztek
on Jun 10, 2008 -
5 answers
How can I find a drop-dead simple way of creating Regular Expression strings without having to learn all the underlying mechanics?
[more inside]
posted by jmnugent
on May 12, 2008 -
35 answers
[Search/replace filter] Is there a free (or really cheap) software that would let me do a batch search and replace where the name of the file is used as pasted text?
[more inside]
posted by domi_p
on Apr 8, 2008 -
14 answers
Help me composite some regex.
(That phrasing makes this question sound way less nerdy than it is) [more inside]
posted by ChasFile
on Dec 28, 2007 -
13 answers
301 redirectrs in .htaccess: how do I redirect calendar/* to /calendar.html ? I've tried modifying various examples online and they result in either "internal server error" or a 404 caused by incorrectly redirecting /calendar/* to /calendar.html/* .
[more inside]
posted by Tuwa
on Mar 13, 2007 -
10 answers
What's a regular expression to match and replace space characters between curly braces with under scores?
[more inside]
posted by pealco
on Jan 21, 2007 -
20 answers
Regex experts: I need a regular expression to help trim some lines in a text file. I haven't done regex in some time and I'm not having any luck with this. Hope it'll be easy for a wiz.
[more inside]
posted by Tubes
on Dec 14, 2006 -
10 answers
I'm trying to write a regex that gets passed into a java class to validate that a file is in a certain directory structure.
[more inside]
posted by toomuch
on Apr 11, 2006 -
3 answers
Probably easy question about PHP and unicode (UTF-8) and RegEx. I'm trying to modify a php webcalendar (VTcalendar) to allow Japanese text in calendar postings. I've found all the variables to get the UTF-8 headers, and so japanese text manually inserted into pages appears fine. But, there's an input validation thingy I don't know how to modify. (short snippet inside)
[more inside]
posted by planetkyoto
on Mar 29, 2006 -
4 answers
Regex Madness...filter. How do I pull the text out of an html document without looking at the tag attributes?
[more inside]
posted by ph00dz
on Mar 26, 2006 -
26 answers
Regexfilter: I'm using PHP and I want to match HTML span classes recursively/in a hierarchy. Help/pointers would be much appreciated.
[more inside]
posted by PuGZ
on Jan 8, 2006 -
5 answers
HtAccessFilter: I’m seeking regular expressions to describe URLs that encompass search engines’ image and video search engines, but not the engines themselves, so that I can block said image and video search engines using “SetEnvIfNoCase Referer” in .htaccess. Also, I’m also seeking to block all incoming requests for one particular URL which is popular with these video and image search engines but which no longer exists – but I don’t want to serve them the normal 404.
[more inside]
posted by WCityMike
on Jan 5, 2006 -
6 answers
RegexFilter: I want to strip out all HTML from a string except for approved tags of B and I.
[more inside]
posted by xmutex
on Dec 13, 2005 -
25 answers
I have a bunch of directories of static HTML files in which I need to:
-> Find A
-> Find B
-> Replace A with B
-> Save, close, repeat with every one of the 500 or so files.
Anyone got an idea?
[more inside]
posted by TiggleTaggleTiger
on Aug 29, 2005 -
21 answers
Well, what do you know, err.. what do I know, Google does
support some sort of regular expressions. However, I can't find the usage guide. Anyone?
posted by Gyan
on Jul 28, 2005 -
11 answers
I'm looking for a home closer to my work, and I'm trying to be systematic about it. My plan is to scrape online real estate databases and put them into a spreadsheet, then start ranking and comparing.
[more inside]
posted by craniac
on Jul 13, 2005 -
8 answers
I've got a problem. There is this ASP website that has gone down for repairs. I've got a wget of the whole site and i need to put the mirror back up on the internet. I've got Os X, and Developer tools installed, etc. I need a shell script to help me get this done.
[more inside]
posted by Freen
on Apr 1, 2005 -
4 answers
Using wildcards in virtusertable for sendmail: resources, pointers, and simple examples, please. Google-fu fails to provide examples that answer my questions. [emm eye]
[more inside]
posted by mwhybark
on Jul 7, 2004 -
2 answers