By drgonzo121 on
Hi,
I want this code out of any document:
<h2 id="header-1" style="color: green; text-align: center;">5211</h2>
<h2 id="header-23" style="color: green; text-align: left;">5211</h2>
<h2 variable part of text>5211</h2>
when i use this code:
<h2 .*>[0-9]{4}</h2>
i get this warning:
warning: preg_match_all() [function.preg-match-all]: Unknown modifier 'h' in /var/www/vhosts/psy.cc/www/modules/scanner/scanner.module on line 845.
what search string should i use then?
(if i execute it, all docuemnts trun up empty)
thanks
Comments
# 7000 de sociale
you see, http://psy.cc/2010 everywhere the "2010" needs to be filtered out ...
and the h1 tags also:
<h1 style="text-align: center; color: green;">WAARDE VAN INZICHTEN</h1>searching for: <h2
searching for:
<h2 style="text-align: center; color: green;" id="header-1">5200</h2>and when i choose replace with "empty string", the whole content of every affected node is gone, empty ...
this <h2.*>[0-9]{4}</h2>
this
<h2.*>[0-9]{4}</h2>should also work, according to the Regex Coach appno reg-ex specialists? thanks
no reg-ex specialists?
thanks anyway :-)
i have a deadline :'(
i have a deadline :'(
I assume your code looks
I assume your code looks something like this
try
Also, if your trying to search and replace, i assume you will be using preg_replace.
hello, i'm using the "Search
hello,
i'm using the "Search and Replace Scanner"-module
http://drupal.org/project/scanner
when i enter your code, it says it doesn't find anywthinh
thanks
i'm changing the module php
i'm changing the module php code, it seems to work more or less now, thanks !