Home
My Faqts
Contributors
About
Help
News: Faqts.com
search
is now functional again. Thank you for your patience.
Faqts
:
Business
:
Programming
:
Shopping For You
:
PHP
:
Common Problems
: Regular Expressions
+ Search
Enter your search terms
Submit search form
Web
faqts.com
Folders
There are no folders in this category
Share Your Knowledge
Ask a Question
Questions
Recently Asked Questions
How can I change only the nth occurence of a string in a text?
How can I change only the first occurence of a string in a text?
How can you list all <img> tag from a html page in a array (using Regular Expressions)
How do I replace [URL=http://www.whatever.com]Link[/URL] with anchor tags?
How do I remove the words "A","The","An" from the beginning of title.
Random Questions
How can I remove *every* character accept letters and numbers from a string?
What are some good books on regular expressions?
How do I replace [URL=http://www.whatever.com]Link[/URL] with anchor tags?
How can I replace returns with <br>s?
What type of regular expressions are used in PHP?
How can I replace returns with <br>s?
How can I replace all sequences of <li> with a single <li>?
[a|b|c][d|e|f][g|h|i] How can I extract the data from this format?
What is the best PHP regular expression to match an anchor tag?
How can I remove unwanted characters from a string?
Do I have to escape square brackets in a regular expression?
How can I turn all URL's in a string into working links?
Why isn't eregi_replace() working?
Where can I learn more about regular expressions?
What are some good books on regular expressions?
What type of regular expressions are used in PHP?
How can I replace a single reg exp match using ereg_replace?
How can I get all words from a sentence into an array?
Do I need to escape characters inside a [] set in a regular expression?
Where can I use a hyphen (-) inside a [] set in a regular expression?
How can I replace all <table ...> tags?
How can I remove *every* character accept letters and numbers from a string?
How can I do simple natural language processing with PHP?
How can I parse queries to remove natural language?
How can I get everything that IS NOT the word "sentence", from the string "This is a sentence."
How do I remove the tags <font WHATEVER> ... </font> & not the ... ?
How do i retrieve all links from a html page?
How can I replace the first occurance of cat with cat1, second occurance of cat with cat2 and so on using ereg_replace or str_replace?
What is the best way to verify that an email address is valid in php?
How do I get the file extension of a url: http://cyberparadise.org/example.php (return php)
How can I convert all relative links in an HTML page to absolute links (using a base held in a var)?
How can i strip java script tag from php or stml script
How can we store image and word documnt file in database, Does anybody have any code
Looking for a way to grab a page from the web. Search for string "Hits", then display result (eg 2525) if page showed "Hits: 2525"
How do I find two patterns in a line with arbitrary number of characters between ?
How do I find "tagname", "attributen", and "data" from "<tagname attributename=attributevalue>data</
how can i change 2nd part of url that starts with qid= and replace everything that follows with "hi"
I have urls like "c(some numbers)s.html". How can I find out the number bewteen c and s.html?
Where can I find the source of preg_match_all?
I want to replace 'and' with 'or' in a string but want it to only work on whole words. eg not 'sand'
How do I escape brackets in a regexp? I want to remove all but azAZ09_-[] from a string..
Looking for a way to grab a page of the net and see if it contains a specefic URL. Any ideas?
How do I escape brackets in a regexp? I want to remove all but azAZ09_-[] from a string..
I want to replace 'and' with 'or' in a string but want it to only work on whole words. eg not 'sand'
How do I remove the words "A","The","An" from the beginning of title.
How do I replace [URL=http://www.whatever.com]Link[/URL] with anchor tags?
How can you list all <img> tag from a html page in a array (using Regular Expressions)
How can I change only the first occurence of a string in a text?
How can I change only the nth occurence of a string in a text?
Unanswered Questions
How can i strip java script tag from php or stml script
replace $term found but not within html tags
How can I use regular expression to change a link from relative path to full path?
How do I extract/separate Jscript or VBscript from HTML ?
Still eregi_replace doesn't work. I've tried it all
Does ereg() match any text including the pattern or identical to it?
How do I replace &qoute text with the actual entity ONLY withing < > tag's w/o repl. anything else?
How would i extract a table from a html page then extract particular columns from that table
How can I replace &'s in a text string without replacing the &'s in html entities (ex. &)?
How to negate subpattern ?
When parsing a file, why does 'preg_replace' cut out when it comes to binary characters (non-POSIX)?
How can I remove this pattern with PHP?
Force all links other than www.mysite.com to open in new window
How to replace a url with <br> tags in it with a working link, while keeping the <br> tags?
how do i force links, other than www.mysite.com to open in a new window
Create a table using a simple formattet text using regular expressions
Create a table using a simple formattet text using regular expressions
How does eregi work?
How does eregi work?
How can I change the first alpha char after the nth occurence of a string in a text?
what is the most regular expressions used in it field and what does they for
How can I replace all <img id="value" /> tags with <div><img src="thumb.php?id=value /></div>
How to find text but if its part of a tag attribute find the full tag
how can I get rid of invalid xml names eg. '(' or ',' inside name tags but not in values.
how can I get rid of invalid xml names eg. '(' or ',' inside name tags but not in values.
how can I get rid of invalid xml names eg. '(' or ',' inside name tags but not in values.
How to handle "<a href=path/file.ext>bla</a>" and SKIP "<a href=http://url>bla</a>" by preg_replace?
How to handle "<a href=path/file.ext>bla</a>" and SKIP "<a href=http://url>bla</a>" by preg_replace?
Can anybody help me regular expression to match all the links in a web page
php ereg_replace search '\141' replace 'a' backslash still in result
Replace the first occurence of a word by a link, except if it is in an uri
How do I get regex to enumerate the changes he makes (xy -> xy1, xy2...)?
Why can't I replace more than one occurence of a given pattern with eregi_replace()?
I am trying to extract data from web page using regular expression.How can do this?
I am wondering, why named groups dont work with preg_replace_callback
How do I replace \" with just "
I need to search many strings with the same regexp. Is there a way to compile or reuse them?
How to replace links like <a href="link"> with <a href="http://www.d.com/g.php?k=link&s=1" in page
In string ,how to start trimming from begining , till upto at perticular word , which is known?