posix-ere Questions
2
I am trying to create a regular expression using POSIX (Extended) Regular Expressions that I can use in my C program code.
Specifically, I have come up with the following, however, I want to exclud...
Scandium asked 13/3, 2013 at 5:5
4
Solved
I'm getting the following message for some php I have to use but did not write:
Deprecated: Function ereg() is deprecated in /opt/lampp/htdocs/webEchange/SiteWeb_V5/inc/html2fpdf.php on line 466
...
1
Solved
I thought that in regular expressions, the "greediness" applies to quantifiers rather than matches as a whole. However, I observe that
grep -E --color=auto 'a+(ab)?' <(printf "aab")
returns ...
Desiderative asked 2/12, 2019 at 11:14
6
Solved
The PHP manual for split() says
This function has been DEPRECATED as
of PHP 5.3.0. Relying on this feature
is highly discouraged...Use explode()
instead.
But I can't find a difference betwe...
5
Solved
I noticed that vim's substitute regex is a bit different from other regexp. What's the difference between them?
4
Solved
I'm sorry to ask a question but I am useless when it comes to understanding regex code.
In a php module that I didn't write is the following function
function isURL($url = NULL) {
if($url=...
1
Solved
Consider the following commands:
text <- "abcdEEEEfg"
sub("c.+?E", "###", text)
# [1] "ab###EEEfg" <<< OKAY
sub("c(.+?)E", "###", text)
# [1] "ab###EEfg" <<< WEIRD
sub("c(.+?...
3
Solved
How can I convert
ereg_replace(".*\.(.*)$","\\1",$imgfile);
to
preg_replace... ?
?
I'm having trouble with it?
4
Solved
I have the following statement which worked fine before PHP 5.3 using the split function:
list($year, $month, $day, $hour, $min, $sec) = split( '[: -]', $post_timestamp );
After upgrading to PHP...
3
Solved
I would like to use a regular expression like this in Java : [[=a=][=e=][=i=]].
But Java doesn't support the POSIX classes [=a=], [=e=] etc.
How can I do this? More precisely, is there a way to n...
Lois asked 7/7, 2011 at 15:12
5
Solved
I have noticed in the PHP regex library there is a choice between ereg and preg. What is the difference? Is one faster than the other and if so, why isn't the slower one deprecated?
Are there any ...
2
Solved
Possible Duplicate:
How can I convert ereg expressions to preg in PHP?
I need help, below is a small VERY basic regex to somewhat validate an email, I do realize it does not work the ...
1
© 2022 - 2024 — McMap. All rights reserved.