Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Pattern match location finding

by pzbagel (Chaplain)
on Feb 18, 2004 at 20:50 UTC ( [id://330055]=note: print w/replies, xml ) Need Help??


in reply to Re: Pattern match location finding
in thread Pattern match location finding

Downside of your approach is that you assume the query string will always be one character. diotalevi's approach does not suffer that limitation. Definately works with the test case feloniousMonk presented, but fM refers to 'B' as a query string implying that it could be multiple characters in some cases.

Replies are listed 'Best First'.
Re: Re: Re: Pattern match location finding
by feloniousMonk (Pilgrim) on Feb 18, 2004 at 21:06 UTC
    And in fact query string is always <= length of target string...

    Thanks for the help everyone, now I have some good suggestions to try out - they're all much better than my own earlier attempts. --

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found