Join 3,411 readers in helping fund MetaFilter (Hide)

10 posts tagged with PHP and regex. (View popular tags)
Displaying 1 through 10 of 10. Subscribe:

Scripting exercises and tech interview theory?

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

Help learning regex

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

Stripping non-alphanumerics in a UTF8 friendly way

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

How can I get my two regex subexpressions to match repeatedly?

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

Regex crisis...

Regular Expressions / PHP preg_replace problem. Can this be made to work...? [more inside]
posted by twine42 on Oct 30, 2008 - 13 answers

Problem with regex order

RegExFilter: Can any regular expression ninjas help me with my this teensy problem? [more inside]
posted by ReiToei on Jun 18, 2008 - 6 answers

Regex Heck

Could someone please help me make my php regex less greedy? I need to insert code for an onclick event into the midst of a bunch of tags, and can't get it to work. [more inside]
posted by teaperson on Dec 5, 2006 - 4 answers

Modifying php-based web calendar to allow UTF-8 (Japanese) input

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

Recursive Regex Fun?

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

Regular Expressions? PHP? Existing App?

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

Page: 1