![]() |
|< 1 2 >| | ![]() |
12 Einträge, 2 Seiten |
my $sth =~ m/('test'|'test3*'|'test3')/;
1
2
3
my $string = '.+_*|\d|\w\w\w';
my $re_text = join '|', map {"\Q$_\E"} split /\|/, $string;
... =~ /$re_text/;
Quote...
<!-- start oe2edit fileinfo -->
<!--
This is a oe2edit contentfile
It should have no <html> <head> <body> tag, because it will be placed in another html file
The following variables discribe how long this content will be active
start_date=23.02.2006 23:30
end_date=01.01.1970 01:00
start_timestamp=1140733800
end_timestamp=0
The following variables show the status of authentification from oe2edit autherware
auth_query are all users for authentification, auth_permit permission allredy arrived from these users
auth_query=
auth_permit=
Last modification by oe2edit of this contentfile
last_update_date=23.02.2006 23:31
last_update_username=admin
-->
<!-- end oe2edit fileinfo -->
...
1
2
3
4
5
6
7
8
9
10
11
12
# oe file info aus code löschen
my $start_regex = "\Q<!-- start oe2edit fileinfo -->\E";
my $end_regex = "\Q<!-- end oe2edit fileinfo -->\E";
###### LÖSCHEN #####
open( FILE, ">test.txt" );
print FILE 's/'.$start_regex.'.+'.$end_regex.'/PASST/i';
close (FILE);
##### NUR TEST #####
$htmlcode =~ s/$start_regex.+$end_regex/PASST/i;# if($$USER_ref{'type'} ne "admin");
Quotes/\<\!\-\-\ start\ oe2edit\ fileinfo\ \-\-\>.+\<\!\-\-\ end\ oe2edit\ fileinfo\ \-\-\>/PASST/i
1
2
3
4
5
6
7
8
9
# oe file info aus code löschen
my $start_regex = '<!-- start oe2edit fileinfo -->';
my $end_regex = '<!-- end oe2edit fileinfo -->';
$htmlcode =~ s/\Q$start_regex\E.+?\Q$end_regex\E/PASST/si;# if($$USER_ref{'type'} ne "admin");
open( FILE, ">test.txt" );
print FILE $htmlcode;
close (FILE);
![]() |
|< 1 2 >| | ![]() |
12 Einträge, 2 Seiten |