GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PADRE::SEARCH (3)

.ds Aq ’

NAME

Padre::Search - The Padre Search API

    SYNOPSIS



  # Create the search object
  my $search = Padre::Search->new(
      find_term => foo,
  );
 
  # Execute the search on the current editor
  $search->search_next(Padre::Current->editor);



    DESCRIPTION

This is the Padre Search API. It allows the creation of abstract search object that can independently search and/or replace in an editor object.

    METHODS

    matches



  my ($first_char, $last_char, @all) = $search->matches(
      text      => $search_text,
      regex     => $search_regexp,
      from      => $from,
      to        => $to,
      backwards => $reverse,
  );



Parameters:

* The text in which we need to search

* The regular expression

* The offset within the text where we the last match started so the next
forward match must start after this.

* The offset within the text where we the last match ended so the next
backward match must end before this.

* backward bit (1 = search backward, 0 = search forward)

CONTENTS

COPYRIGHT & LICENSE

Copyright 2008-2013 The Padre development team as listed in Padre.pm.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PADRE::SEARCH (3) 2013-11-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.