Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: about regular expression

by particle (Vicar)
on Feb 02, 2002 at 16:36 UTC ( [id://142935]=note: print w/replies, xml ) Need Help??


in reply to Re: about regular expression
in thread about regular expression

be careful, ryan.

.+ matches one or more characters.
.* matches zero or more characters.

augustina_s specified in her dataset that there might be an empty list in the dataset. the second .+ would break in that case.

also, you don't need to escape semi-colon (;).

~Particle

Replies are listed 'Best First'.
Re: Re: Re: about regular expression
by ryan (Pilgrim) on Feb 03, 2002 at 04:50 UTC
    Yep, point taken, if as your later post does, a blank set of inputs is mean to output for example 'Intron' with nothing after it then mine fails.

    Mine just prints nothing if there is no data for the input line. I didn't know which way is correct, because I lost some of the example code due to to some lovely DB errors this site keeps throwing me.

    also, you don't need to escape semi-colon (;).

    Ahh the wonders of being an incompetent novice, I'd say it doesn't hurt, but no doubt you'll give me an example of when it can :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://142935]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found