|
by: Paul Rubin |
last post by:
I have a string s, possibly megabytes in size, and two regexps, p and q.
I want to find the first occurence of q that occurs after the first
occurence of p.
Is there a reasonable way to do it?
g1 = re.search(p, s)
g2 = re.search(q, s)
q_offset = g1.end() + g2.start()
|
by: Stephen Ferg |
last post by:
I need a little help here.
I'm developing some introductory material on Python for non-programmers.
The first draft includes this statement. Is this correct?
-----------------------------------------------------------------
When loading modules, Python looks for modules
in the following places in the following order:
|
by: SeaPlusPlus |
last post by:
I want to convert large files of prose to xhtml and so I need a way to
remove unwanted line wraps. So, I'm looking for a freebee editor that
has the capability of searching for a single "carriage return/line feed"
or "line feed/carriage return" and removing them. I quess what I need is
an editor that allows non-printable characters in it's search strings.
Does anyone know of on that will allow this?
Thank you...
|
by: tshad |
last post by:
Can you do a search for more that one string in another string?
Something like:
someString.IndexOf("something1","something2","something3",0)
or would you have to do something like:
if ((someString.IndexOf("something1",0) >= 0) ||
((someString.IndexOf("something2",0) >= 0) ||
|
by: Peter Schmitz |
last post by:
Hi,
one of the main task of my currently developed application is to search in
small buffers for given patterns (average buffer size 1000 bytes). Now, for
some reasons I can't use the provided C std libs, so I need to implement my
own - but unfortunately I cannot find any hints about how to program such an
algorithm, so that it is really fast. Is there any (free) algorithm to start
with? Any free implementations?
Thanks a lot for any...
|
|
by: Luis Corrales |
last post by:
Hi all,
I have a problem when searching for text with special characters in
e-mails in an IMAP server. I'm using imaplib in python 2.4.3 and I can't
get this code working:
# first connect and login
conn = IMAP4(my_server)
conn.login(my_user, my_pass)
|
by: Ragavendran |
last post by:
Hi,
I am using this method for search:
Query =org.apache.lucene.queryParser.QueryParser.parse(String arg0) throws ParseException
Hits = org.apache.lucene.search.Searcher.search(Query query, Sort sort) throws IOException
Problem :
I cant able to search the word. If the word contain special character like , %BF It just taken that special character a empty space and search the remaining character
|
by: neoform |
last post by:
I was wondering what would be the best search application for indexing/
searching content? Fulltext in MySQL is too slow once you get a db
over 1GB. I played around with Zend's version of Lucene, but it
contains a few bugs that need to be fixed before I can use it..
Does anyone know of other search libs/apps out there that would work
well with php?
|
by: thesti |
last post by:
hi,
how to search a string in a table that contain a special character ?
for example i want to search fo a string "D'Crepes" in a field of a table.
i've tried using the following sql from vb .net
select name from menu where name like '%D'Crepes%'
but since ' is a special character, i got an error. is there anyway to do this, like using \ in mysql?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|