jake7176 has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
This is my first post and I am sure it has been asked before, but I can't find it anywhere.
Say I have a string ksguhdipghisosipghthispartudirlhgdr
How would I go about extracting thispart?
I feel like I should make clear that I don't know where abouts in the string it will be, I just know that it is in there somewhere. I have tried some basic regex but all I seem to be able to do is remove "thispart" and end up with the stuff I don't want.
Any help is much appreciated,
thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Get a known substring from a string
by johngg (Canon) on Sep 09, 2016 at 21:29 UTC | |
Re: Get a known substring from a string
by Laurent_R (Canon) on Sep 09, 2016 at 20:52 UTC | |
Re: Get a known substring from a string
by pryrt (Abbot) on Sep 09, 2016 at 18:37 UTC | |
Re: Get a known substring from a string
by shmem (Chancellor) on Sep 09, 2016 at 21:42 UTC | |
Re: Get a known substring from a string
by BrowserUk (Patriarch) on Sep 09, 2016 at 16:38 UTC | |
by jake7176 (Novice) on Sep 09, 2016 at 16:44 UTC | |
by BrowserUk (Patriarch) on Sep 09, 2016 at 17:10 UTC | |
Re: Get a known substring from a string
by Anonymous Monk on Sep 09, 2016 at 23:05 UTC | |
by BrowserUk (Patriarch) on Sep 09, 2016 at 23:18 UTC | |
by Corion (Patriarch) on Sep 10, 2016 at 09:42 UTC | |
by BrowserUk (Patriarch) on Sep 10, 2016 at 11:40 UTC | |
by flowdy (Scribe) on Sep 13, 2016 at 07:34 UTC | |
| |
Re: Get a known substring from a string
by Krambambuli (Curate) on Sep 13, 2016 at 09:51 UTC |
Back to
Seekers of Perl Wisdom