Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
So, is there a way that I can use a reg exp to match this? I tried:[NAME I HAVE]: Acidovorax JS42 [NAME IN THE DATASET FILE] Acidovorax sp. JS42
and it did not work... So, is there not any way to match a string of some words that is contained in a bigger string but the words are not in order?$my_name="Acidovorax JS42"; $db_name="Acidovorax sp. JS42"; if($total=~/$find/) { print "OK\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reg exps?
by Ratazong (Monsignor) on Jan 14, 2010 at 15:09 UTC | |
by matze77 (Friar) on Jan 14, 2010 at 18:09 UTC | |
|
Re: Reg exps?
by eff_i_g (Curate) on Jan 14, 2010 at 15:58 UTC | |
by Anonymous Monk on Jan 14, 2010 at 16:07 UTC | |
by toastbread (Novice) on Jan 14, 2010 at 18:08 UTC | |
by JavaFan (Canon) on Jan 15, 2010 at 00:22 UTC | |
by fod (Friar) on Jan 14, 2010 at 18:48 UTC | |
by JavaFan (Canon) on Jan 14, 2010 at 19:06 UTC | |
by fod (Friar) on Jan 14, 2010 at 22:31 UTC | |
|
Re: Reg exps?
by JavaFan (Canon) on Jan 14, 2010 at 15:29 UTC | |
by Anonymous Monk on Jan 14, 2010 at 15:32 UTC |