regexp international standard?


    Sponsored Links


  • 1. Steve Maguire Video?
    Hi, I've been trying to locate a programming tips and project lead tips video that I saw about 9 years ago. It was very informative and very funny. I believe that it was Steve Maguire talking at a MS Developers Conference. Two things that stick in my mind about it are 1. Steve threatning to have the Golden (Resources Time Features) triangle tattooed on his forehead so that he could point to it whenever product managers asked for yet another feature. 2 An anecdote about how given a 15 week task, many programmers will be "on schedule" for the first 14 days and then "slip" 10 days on the last day. Does this ring a bell with anyone? If so do you know where I can find it? brisbanejohn
  • 2. Freelance website?
    Hi all, I am looking for a freelance programmer with skills in C++/Java/Matlab or NS-2 to write a SIP signalling simulation software for use in teaching labs. Nothing too complicated just the basic signalling functions. Are there any freelance websites you would recommend to post the job? Thanks!
  • 3. float to int
    Hi, I need the binary representation of a floating point in the form of an integer. For this purpose, I use C++: float b = 10.5; int d = reinterpret_cast< int& >( b ); When I print 'd', I get the value: 1093140480 This corresponds to 100 0001 0010 1000 0000 0000 0000 0000b although I would expect "d = 16680 = 100 0001 0010 1000b". You can see that my expected integer value is represented by the upper bits of the computed integer "d". Why is that? Why are not the lower bits(the first 16 bits written)? Would you also use "reinterpret_cast" for that purpose? Best regards, Chris
  • 4. Simle Hash for Invoice Numbers?
    I need to generate invoice numbers but I would prefer not to use consecutive values because it unnecessarily exposes information about sales. Encoding julian dates and other such things isn't much better. Can someone recommend a superior method? I'm thinking that a really simple hash (e.g. multiplication) would work fine. It would have to generate values with a relatively small number of digits (e.g. values between 0 and 65535) but without collisions. It would also be nice if it was reversible so that I could actually encode things in it. And it doesn't need to be crack-proof. We're just trying to obfuscate things a little. Any ideas? Mike

regexp international standard?

Postby Rui Maciel » Thu, 24 Jan 2008 00:56:06 GMT

Is there any international standard regarding regular expressions? If so,
what's it's number and where can I catch a glimpse of it?

Thanks in advance
Rui Maciel

Re: regexp international standard?

Postby Malcolm McLean » Thu, 24 Jan 2008 01:25:26 GMT

I think Perl is standardised. It's certainly a de facto standard language. 
Regular expressions are an inherent part of it.

Free games and programming goodies.
 http://www.**--****.com/ ~bgy1mm

Re: regexp international standard?

Postby Ben Bacarisse » Thu, 24 Jan 2008 01:46:52 GMT

Rui Maciel < XXXX@XXXXX.COM > writes:

POSIX defines regular expressions and an API thereto.  I think POSIX
is an ISO standard (ISO/IEC 9945-1:1996 but I am not sure).

Many systems provide Perl-compatible regexps (PCREs), and these are,
to my mind, more flexible and neater.  If I had to pick, I'd go PCRE
over POSIX any day.


Re: regexp international standard?

Postby Kalle Olavi Niemitalo » Fri, 25 Jan 2008 15:57:38 GMT

Rui Maciel < XXXX@XXXXX.COM > writes:

ECMA-262 (ECMAScript Language Specification) includes a regexp syntax.
"This Ecma publication is also approved as ISO/IEC 16262"

I thought there would also be a System.Text.RegularExpressions.Regex
class in ECMA-335 (Common Language Infrastructure (CLI)), but
apparently not.

Return to programming


Who is online

Users browsing this forum: No registered users and 81 guest