The regex tag has no wiki summary.
2
votes
3answers
149 views
Domain-specific language for text search/processing?
I work for an organization that does a lot of work with government data. We have a couple of different projects where we've abstracted out common text search/manipulation operations into reusable ...
2
votes
1answer
120 views
How to choose a proper parser generator for PHP
Some programmers avoid regexes in some situations (see this popular @nickf comment), perhaps using a parsing framework such as Lex/Yacc. Others prefer to stay within PHP, perhaps using regular ...
3
votes
1answer
321 views
Constructing a Deterministic Finite State Automaton for a given Regex
I have a couple of exam questions for my compilers class and wanted to check if my solutions are correct.
The first question is:
Consider a language in which numbers start with an optional minus
...
4
votes
4answers
713 views
Can the csv format be defined by a regex?
A colleague and I have recently argued over whether a pure regex is capable of fully encapsulating the csv format, such that it is capable of parsing all files with any given escape char, quote char, ...
0
votes
2answers
148 views
How should a website validate a users mailing address?
This is for a site that relies on shipping items via UPS or FedEx. I know there is software out there that does it (http://en.wikipedia.org/wiki/Coding_Accuracy_Support_System), but if you are trying ...
5
votes
2answers
218 views
Python flavor of regular expressions - related to which?
So my copy of the classic book, Mastering Regular Expressions, just arrived, and I'm scanning through it. The cover (third edition) says, "for Perl, PHP, Java, .NET, Ruby, and More!" Well, it does ...
7
votes
5answers
448 views
Lexical Analysis without regular expressions
I've been looking at a few lexers in various higher level langauges (Python, PHP, Javascript among others) and they all seem to use regular expressions in one form or another. While I'm sure regex's ...
8
votes
7answers
2k views
How do regular expressions actually work?
Say you have a document with an essay written. You want to parse this essay to only select certain words. Cool.
Is using a regular expression faster than parsing the file line by line and word by ...
2
votes
4answers
227 views
Maintaining Regex in a .net application
I am sure everybody has had his/her share of regex woes.
We have a big application with around 30 developers working on a mvc3 web application , and the two fold regex validations (front-end and ...
12
votes
10answers
709 views
Inspiring problems to show off the importance of regular expressions?
I am planning to give a presentation/demonstration on regular expressions at work to encourage young developers to add this powerful and important tool in their toolbox.
Just teaching syntax doesn't ...
76
votes
18answers
4k views
How do you learn Regular Expressions?
I'm not asking where to learn. I've found lots of good resources online, and books etc.
But how the heck do I tackle them. Where is the start of it, the end? When does the regexp processor advance on ...
11
votes
7answers
623 views
What is more standard shortening for “regular expression”, “regex” or “regexp”? [closed]
I want to know what is more standard way to call regular expression in short way. I have seen both, regex and regexp.
Google says regex has almost 2 as much hits that regexp, but it depends on way I ...
4
votes
2answers
264 views
Using lookahead assertions in regular expressions
I use regular expressions on a daily basis, as my daily work is 90% in Perl (legacy codebase, but that's a different issue). Despite this, I still find lookahead and lookbehind to be terribly ...
12
votes
6answers
388 views
What can / should be done with regular expressions?
I've recently learnt regular expressions and I love writing / using them. I'm looking for ideas and more opportunities to use them, however I don't want to overuse them as an all purpose tool, as ...
3
votes
1answer
641 views
can a regex search engine for the web be done and if so, how?
I think it would be a great idea if we had a regular expression search engine, but can it be done? It seems impossible since there's no feasible way of indexing such a huge amount of data properly and ...