HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- regular expression bug in Tru64 V5.1B 2650 alpha
Operating System - Tru64 Unix
1830207
Members
1925
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2006 06:52 AM
09-25-2006 06:52 AM
regular expression bug in Tru64 V5.1B 2650 alpha
can someone please let me know if there is a patch for the problem described below.
The following RE is used to parse a string into sub-fields:
field-1 = open quote
field-2 = quoted value
field-3 = close quote
"^[[:space:]]*text[[:space:]]+([\"']{1})(.*)([\"']{1})[[:space:]]*$"
so the target string:
TEXT "hello world!"
produces:
field-1 = "
field-2 = hello world!
field-3 = "
this has worked fine for many years, but the following target string does not work since we upgraded to V5.1B 2650 alpha:
TEXT "'"
which should produce:
field-1 = "
field-2 = '
field-3 = "
but actually produces:
field-1 = "
field-2 =
field-3 = "
it works if I change the definition for field-1 from (.*) to (.+) but this prevents the use of double quotes around a blank quoted value - eg:
TEXT ""
urgent help required - all help gratefully received.
Cheers - Chris
The following RE is used to parse a string into sub-fields:
field-1 = open quote
field-2 = quoted value
field-3 = close quote
"^[[:space:]]*text[[:space:]]+([\"']{1})(.*)([\"']{1})[[:space:]]*$"
so the target string:
TEXT "hello world!"
produces:
field-1 = "
field-2 = hello world!
field-3 = "
this has worked fine for many years, but the following target string does not work since we upgraded to V5.1B 2650 alpha:
TEXT "'"
which should produce:
field-1 = "
field-2 = '
field-3 = "
but actually produces:
field-1 = "
field-2 =
field-3 = "
it works if I change the definition for field-1 from (.*) to (.+) but this prevents the use of double quotes around a blank quoted value - eg:
TEXT ""
urgent help required - all help gratefully received.
Cheers - Chris
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2006 07:12 AM
09-25-2006 07:12 AM
Re: regular expression bug in Tru64 V5.1B 2650 alpha
sorry - should have mention I am using the POSIX regcomp() and regexec() calls in C++ with the flags REG_EXTENDED and REG_ICASE
-- Chris
-- Chris
- Tags:
- regexec
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP