Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Regular Expression to find Word Prefixes

by hotshot (Prior)
on May 19, 2002 at 15:59 UTC ( [id://167669]=note: print w/replies, xml ) Need Help??


in reply to Regular Expression to find Word Prefixes

If your text after the prefix is always chemX (where X is a digit) or a lowered case word, or a space is separating the words, you can do:
/(\S+)\s+(\S+)/


Thanks.

Hotshot

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-20 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found