-1
votes
2answers
32 views

regular expression parse url parameter

I'm having trouble retrieving a URL parameter from a string using regular expressions: An example string could be some text and http://google.com/?something=this&tag=yahoo.com and more text, and ...
-1
votes
1answer
24 views

RegExp parsing after preg_quote

After doing some preg_quote I want to parse a string but this ends in disaster. Via online regexp evaluators everything works fine but local are some issues. $subject = '\<\:foo\|\.\*\>'; ...
0
votes
3answers
39 views

Remove last slash in URL, only if no directory is present

I am trying to remove the last / from a URL, but only if there is no directory present. Is there a way to check if(3 slashes only && not https) remove slash? Or is there a better way to ...
0
votes
0answers
21 views

Using string replace/regex in typoscript for a rte field

I want to cutoff everything but the first paragraph from a rte field for an excerpt. why is this regex not working? or is there a better solution? 20 = HTML 20.value.field = tx_myextention_field ...
1
vote
3answers
65 views

RegEx - If Our Site URL Contains This, Then

need some regex help for a regex newb. If our URL contains SearchBox. (SearchBox with the dot on the end) or SearchBox-Empty Then, we need to do something. So example matching URLs ...
0
votes
3answers
30 views

Issues with form submission

A few questions here i have to ask, first of all, does it matter whether you put in your form: <form action="whatever.php" method="post"> instead of: <form name="" ...
0
votes
2answers
38 views

htaccess rule to parse php@parameter=anything as php file

i want my server to treat files.php@parameter=anything as simple php file i don't need to use symbol "@" as separator, such as "?" but i still want to parse files.php@parameter=anything as a single ...
0
votes
2answers
33 views

PHP RegEx in retrieving number of backlinks

I have this code that queries Google to get the the number of backlinks a certain website has. I want to use it in a SEO report generator I'm making. Problem is I can't get the preg_match to work ...
0
votes
1answer
20 views

preg_match positive lookahead trouble

I have two strings <span class="price" id="product-price-2095">$425.00</span> <span class="price" id="product-price-355">$25.00</span> I need to extract the prices $425.00 ...
0
votes
4answers
42 views

PHP Regex to get all image URLs on the page

Oddly enough I haven't found anywhere that has answer this question specificly, all the other stack overflow things I've found aren't exactly right. I have a body text I need to search through for ...
0
votes
3answers
38 views

extracting urls from page with regex in php

How would I make a regex to extract urls from a page where I am matching to a center part of a url For example my urls to match would be something like: ...
0
votes
3answers
28 views

extracting urls from a page with regex

I have this bit of php that extracts all urls from a page: $regex = '/https?\:\/\/[^\" ]+/i'; preg_match_all($regex, $page, $matches); $links = ($matches[0]); foreach($links as $link) { echo ...
0
votes
2answers
41 views

SQL injection risk - allow REGEXP input

I am considering allowing users to insert their own REGEXP pattern which will be used in a Mysql query. I am well aware of sql injection risks, and I know there is no way of passing the regexp pattern ...
0
votes
2answers
22 views

how to use preg_replace to remove all following style tag/pattern occurrences in a string?

I am trying to find a regex to match the following: <style type="text/css"> .article-content{ position: relative; padding-bottom: 140px;} .pane.pane-newsletter-contextual{ display: block; ...
-1
votes
1answer
50 views

Extracting infromation from text using regex

I am trying to extract specific information from a long string text. The text is: Rating: Explicit Score: 17 Tags: apron blonde_hair brown_eyes itaru_chokusha kirigaya_kazuto long_hair nipples ...

1 2 3 4 5 792
15 30 50 per page