>>>>> "Scott" == Scott E Robinson <[EMAIL PROTECTED]> writes:
Scott> Regarding the suggestion to unsubscribe folks who put vacation
messages on
Scott> their account, I'm in a company which considers it very good
practice to do
Scott> so. They don'
lowed by my company, and I'm not going to subscribe
to this list from home.)
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
Scott
Scott E. Rob
be the solution is just not to go on vacation.
Thanks,
Scott
Scott E. Robinson
DMPO Data Quality & Best Practices WIG
CORP-RR-306 -- 281-654-5169
CORP-EMB-2813N -- 713-656-3629
Safety – The Investment of a Lifetime! (Eugene Byon, 2005)
How can I write a regular expression to keep the part of a string that's
between a pair of square braces? Here's a sample line:
Updating Wellbore Set Keys: [wlbr_id = 1234567890, data_provider_code =
MTBL, welltype = OIL]
Thanks in advance for your help!
Scott
Scott E. Robinson
SWAT
Great job, Rob! Thanks for the good code! Quite a timesaver.
Scott
Scott E. Robinson
SWAT Team
Data Mgt Practices & Operations (DMPO)
RR-690 -- 281-654-5169
EMB-2813N -- 713-656-3629
Safety is never an accident
- Forwarded by Scott E Robinson/U-Houston/ExxonMobil on 02/19/04 09:2
Lotus Notes adds a header to the top of the note which I *can* cut and
paste to the bottom. It does not do the indentation with '>' characters
that seems to be preferred.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N --
- not as a prerequisite for
posters, but as a way to help them out.
(Of course, I'm not one to talk -- my grounding in Computer Science is so
rusty people on this list often don't know I have it...)
(And, sorry for the top-posting. I haven't figured out how to fix that!)
Thanks,
Scot
Can anyone tell me what the Perl driver for MSAccess is called and how to
use it to read a table?
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N -- 713-656-3629
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
[EMAIL PROTECTED] wrote:
> What's the simple Perl command to find the name of the file from
> which the Perl program is being executed? It was recently on this
> newsgroup but I can't find the article now.
>
> Thanks,
>
> Scott
>
> Scott E. Robinso
What's the simple Perl command to find the name of the file from which the
Perl program is being executed? It was recently on this newsgroup but I
can't find the article now.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N -- 71
he subroutine that processes names into a "matchable"
form.
What I'd like to be able to do is take a *set* of abbreviation
"dictionaries," concatenate them together and dynamically generate the
regex code in the routine that is going to execute it.
Thanks,
Scott
Scott
hit from using variables in the
substitution statements is negligible, and if so, I'd be happy to go that
route.)
Thanks in advance,
Scott
Scott E. Robinson
Data SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N -- 713-656-3629
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hey, Rob, thanks! That was really useful. Just from sitting in the
background, reading these posts, I learn a lot.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N -- 713-656-3629
grab?
(BTW, the page I'm thinking of is the Catalog of Extrasolar Planets by Jean
Schneider, at http://www.obspm.fr/encycl/catalog.html.)
FYI, I've never done any Web programming.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N
Whew. I'm glad you both explained this to me. I thought I had to go
change my code for a minute -- but it did indeed work, since the assumption
of always-alphanumeric (plus colons or vertical bars as delimiters) is
correct.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Suppo
e comparison if
the string is null -- it's comparing against 690,000 records).
I wasn't complaining about working all evening, by the way -- just
highlighting how little I know about Perl since a little thing like that
can keep me here all night!
Thanks,
Scott
Scott E. Robinson
here an easy way to keep the null string from matching anything? It
would have saved me an evening if I'd known about it.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-
present in both, but not in
the same position, a "position" being the order of the substrings within
the main string.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N -- 71
c substrings:
my @wanted = $string =~ /\b(\w|\d*)\b/ig;
1.c. Keep only single- and double-letter substrings and also any
all-numeric substrings:
my @wanted = $string =~ /\b[a-z]\w?\b|\b[0-9]+\b/ig;
I still wonder if the array is necessary.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite U
or greater efficiency.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N -- 713-656-3629
000:M:M261:M260: can match the substrings and their positions and
return the result "2" in this case? The M260 substring is present in both
but in different positions and shouldn't be counted as a match.
Thanks in advance for your help!
Scott
Scott E. Robinson
data SWAT Team
UTC On
s post is just about what I was asking for. I just need
a way to process the Soundexed "chunks" in the first comparison, and only
the non-Soundexed (pure alpha or pure numeric) "chunks" in the second
comparison.
Thanks,
Scott
Scott E. Robinson
SWAT Team
Rob, thanks! This might work, but can you tell me how to make the pattern
(:8: in your example) a variable? And I think I can count the number of
elements in the @y array and use that as my match count, too.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654
:M260: for example -- and count its matches against one of the target
strings, like :L520:M260:C000:S000:L200:14:E214:. I don't think a count
hash does that??
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N
s each string
is contained inside the target string, I thought substring matches might do
it in one operation -- but I don't know how to count the number of matches.
I hope somebody out there does -- or knows an even better way.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
R
25 matches
Mail list logo