Hi
Can somebody please help me know how do i match the basename using a regular expression using posix standard in shell script
suppose i want to match
/u01/Sybase/data/master.dbf the result should be master.dbf as i want to match everything after the last /
regards (8 Replies)
Hi
Input:
MYTEXT.aa.bb
cc.MYTEXT.aa.bb
ee.dd.cc.MYTEXT.aa.bb
cc.NOTEXT.a.b
Output:
<empty>
cc
cc
<empty>
I would like to use a regex to extract the last word before MYTEXT without the dot (2 Replies)
Hello to all,
I have:
X="string 1-"
Y="-string 2"
Z="string 1-20-string 2"In the position of the number 20 could be different numbers, but I'm interest only when the number is 15, 20,45 or 70.
I want to include an IF within an awk code with a regex in the following way.
... (12 Replies)
Hi
We have a tool to monitor logs in our environment. The tool accepts log pattern match only using regex and I accept I am a n00b in that:confused:. I had been banging my head to make it work without much success and at last had to turn on to my last option to post it here. I had got great... (2 Replies)
push @MACARRAY, "$+{catalog} $+{machine}\n" if ($info =~ /(?<catalog>catalog).+?(?<machine>\*+)/ms);
I am (still) trying to solve problem. Looking around on the server I found this piece of code. Specifically what does "$+{catalog} $+{machine}\n"
do ?
Thanks in advance (1 Reply)
I have a scripting problem that I'm trying to solve, whereby I want to match that a string contains either of three strings. I'm thinking this is probably just me not understanding how to craft the appropriate regex. However, here's what I would like to do:
] && do-something
more... (10 Replies)
I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works:
LOCAL_CONFIG
#
Kcheckaddress regex -a@MATCH
+<@+?\.++?\.(us|info|to|br|bid|cn|ru)
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex... (0 Replies)
I cannot seem to get what should be a simple awk one-liner to work correctly and cannot figure out why. I would like to use patterns from a specific field in one file as regex to search for matching strings in the entire line ($0) of another file.
I would like to output the lines of File2 which... (1 Reply)
Discussion started by: jvoot
1 Replies
LEARN ABOUT DEBIAN
rdf::trine::model::statementfilter
RDF::Trine::Model::StatementFilter(3pm) User Contributed Perl Documentation RDF::Trine::Model::StatementFilter(3pm)NAME
RDF::Trine::Model::StatementFilter - Model for filtering statements based on a user-specified criteria
VERSION
This document describes RDF::Trine::Model::StatementFilter version 1.000
METHODS
Beyond the methods documented below, this class inherits methods from the RDF::Trine::Model class.
"new ( $store )"
Returns a new statement-filter model.
"count_statements ($subject, $predicate, $object)"
Returns a count of all the statements matching the specified subject, predicate and objects. Any of the arguments may be undef to match
any value.
"get_statements ($subject, $predicate, $object [, $context] )"
Returns a stream object of all statements matching the specified subject, predicate and objects from all of the rdf stores. Any of the
arguments may be undef to match any value.
"get_pattern ( $bgp [, $context] )"
Returns a stream object of all bindings matching the specified graph pattern.
"apply_rules ( $statement )"
"rules"
Returns a list of all rules in the inferencing model.
"add_rule ( &rule )"
Adds a rule to the inferencing model. The rule should be a CODE reference that, when passed a statement object, will return true if the
statement should be allowed in the model, false if it should be filtered out.
BUGS
Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>.
AUTHOR
Gregory Todd Williams "<gwilliams@cpan.org>"
COPYRIGHT
Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms
as Perl itself.
perl v5.14.2 2012-06-29 RDF::Trine::Model::StatementFilter(3pm)