- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Using perl to control the characters type
Operating System - Linux
1752513
Members
5041
Online
108788
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО12-13-2006 12:15 PM
тАО12-13-2006 12:15 PM
Hi guys,
Do you know how i can use perl scripting regular expression to control the input.
I would like the input to be 9 characters
1st character is alphabet, 2nd is digit, third alphabet follow by 6 digits. I am not sure how to control individual character.
Thanks in advance.
Best regards
Henry
Do you know how i can use perl scripting regular expression to control the input.
I would like the input to be 9 characters
1st character is alphabet, 2nd is digit, third alphabet follow by 6 digits. I am not sure how to control individual character.
Thanks in advance.
Best regards
Henry
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2006 04:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2006 06:37 PM
тАО12-13-2006 06:37 PM
Re: Using perl to control the characters type
if you're new to re stuff, using the x modifier might help you understand it later
$var =~ m{
^ # Start of string
[a-z] # 1st A letter
\d # 2nd A digit
[a-z] # 3rd A letter
\d {6} # 4th 6 digits
$ # End of string
}xi; # x = allow space and comments (use \s to match space)
# i = ignore case
Enjoy, Have FUN! H.Merijn
$var =~ m{
^ # Start of string
[a-z] # 1st A letter
\d # 2nd A digit
[a-z] # 3rd A letter
\d {6} # 4th 6 digits
$ # End of string
}xi; # x = allow space and comments (use \s to match space)
# i = ignore case
Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2006 01:01 PM
тАО12-14-2006 01:01 PM
Re: Using perl to control the characters type
Great help .. thanks guys!! :D
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP