Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Matching '=' and other non alphanumeric characters using regular expressions

by krujos (Curate)
on Dec 13, 2002 at 06:07 UTC ( #219507=note: print w/ replies, xml ) Need Help??


in reply to Matching '=' and other non alphanumeric characters using regular expressions

you need to match the . and = characters. If there is a genral form for the where thoes occur you could plug them into your scripts. Without knowing that a smiple suggestion is to just add the = and periods to your regex.
if ($string =~ /DEFINITION\s\s([\w\s=\.]+)ACCESSION/){
Good luck. Josh
  • Comment on Re: Matching '=' and other non alphanumeric characters using regular expressions
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2016-07-28 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (258 votes). Check out past polls.