Hi,
I have few sentences and here are those sentences.
Protein modeling studies reveal that the RG-rich region is part of a three to four strand antiparallel beta-sheet, which in other RNA binding protein functions as a platform for nucleic acid interactions.
PUF proteins comprise a highly conserved family of sequence-specific RNA-binding protein that regulate target mRNAs
I have an interface which accepts query from user and i am taking that query like this:
$word=param('query');
For eg if user enters "RNA binding proteins" it should pick up both the sentences.
I don't know how to write a regular expression such that this $word should satisfy both the conditions(i.e "RNA-binging protein" and "RNA binding protein") and both these sentences should be picked up!
How should a regular expression to be written such that occurence of these words in sentences are matched and picked up?
I tried like this but its not matching!!
if($word=~/.*[\s\-]/)
I am not getting proper regular expression to match these words and retrieve sentences.
Please help!!!
With regards
Vandithar