You are here: Technology, Web & Business Forum
: Web Development
: Programming
:
What does this PERL expression mean?
|
Welcome to the Technology, Web & Business Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
|||
that's called a "regular expression"
you may want to do some research on regular expressions to figure out what they mean, but i'll break this down for you: /^[-+]?\d+\.\d+$/ the first "/" and last "/" are only there to enclose the regular expression: ^[-+]?\d+\.\d+$ the "^" means to check from the beginning and "$" means to check all the way to the end. [-+]? the ? means to match 1 or 0 of any of the characters enclosed in the square brackets [ ]... \d+ this means to match any digit character, represented by \d, and the "+" means to match any digit 1 or more times. \. this means to match a period \d+ same as the other
__________________
Powered by Yahoo! Answers |



Linear Mode
