circumflex/caret

Thomas Michael Hagen <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
i just ran into a weird problem.

a regex that i wrote on a 32-bit machine suddenly stopped working when i ran
it on a 64-bit machine.

the regex: /^[[:lower:]][[:lower:]]\n/

it is used in a syscall to ls

with the caret removed, the regex behaves identically (wrongly) on both
machines (it matches the last two letters of all the subfolders in the
folder)

with the caret, it works perfectly on the 32-bit machine (it matches all the
subfolders with two-letter names in the folder.

on the 64-bit machine, however, it doesn't match anything.

is this a known problem?

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

_______________________________________________
Crm114-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crm114-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.