« first day (532 days earlier)      last day (3260 days later) » 

5:57 AM
Good mornning :)
 
6:22 AM
morning
@CSᵠ There are quite a few things that C# doesn't have that the PCRE has besides recursion :)
 
7:00 AM
And (even more so) vice-versa :)
 
7:51 AM
@zx81
in R Public, 4 mins ago, by Avinash Raj
> gsub(",([^,]*)", " $1,$1", text, perl=TRUE)
[1] "Lorem $1,$1 $1,$1 $1,$1 $1,$1 $1,$1"
in R Public, 4 mins ago, by Avinash Raj
how do i back-reference the captured groups in r gsub command?
 
8:04 AM
@AvinashRaj is it python? I think you use \1?
 
it's R. And i found the solution..
 
Oh! Escaping in literals.
Grats!
 
 
3 hours later…
11:09 AM
@Unihedron Hey Uni, in agreement with you that identifying patterns with potential for catastrophic backtracking is challenging—some "bad ones" might be adequate if you have full control of the subject string. This page identifies four types of symptoms. Definitely an interesting topic.
Oh there's also that µSft Fuzzer tool—haven't tried it, Jan Goyvaerts wasn't raving about it in the last edition of his book.
 
@zx81 :O
I really should dedicate a day to read all of RexEgg articles :D
 
 
6 hours later…
5:07 PM
@Unihedron Hi again :) I have this Regex: [H](.*?)[\/H]. How to reverse this regex? I need everything, which is not matching this pattern...
 
........
??? What?
@Bryuk What do you mean?
Maybe you want this? regex101.com/r/tD8oT2/1
 
I mean like this: http://regex101.com/r/aE6kI3/4
But opposite way
For this particular one, I need all matched, except: "GOODYEAR", "TIRE"
 
5:39 PM
?????????
 
0
Q: How to get Opposite result of Regex.Split VB.NET?

BryukI have some string, like this one:[H]GOODYEAR[/H] [H]TIRE[/H] & RUBBER COMPANY I need to get words that inside [H] [/H] node inside this string. I created this Regex Pattern: \[H](.*?)\[\/H] I've tried to use Regex.Split Method to get this words. Here's my code: Dim pattern As String = "\[H...

 
dunno never done regex in visual basic
 
ok. Thanks. Will try figure out :)
 
lol
 
 
5 hours later…
11:10 PM
@AvinashRaj Hi Avinash, looks like you're doing great. :)
 
@zx81 hi :-), no no
@zx81 Hi ...
@zx81 no , no..
 
That's a lot of "no"s...lol... What do you mean "no"?
 
@zx81 How to learn .ht-access regex?
 
Hope that doesn't mean that you're not enjoying the hard work of answering all these questions…
htaccess regex? For me, I read answers by anubhava :)
 
something like redirecting the URL to blah blah
 
11:18 PM
anubhava's answers, plus the documentation
 
hmm. How do you test your regex?
 
On the mod-rewrite tag, click the "votes" tab and read all the answers… That's what I did.
For testing, I use a local Apache on xampp and a remote Apache on CentOS
 
is there any online regex test engine for .htaccess?
 
Yeah but it's worthless (IMO)
 
local Apache? How do i configure it in Ubuntu?
 
11:21 PM
There are two main online testers. I never use them, they don't support all the advanced stuff you will need.
I don't know, maybe you could google "install apache on Ubuntu" ?
 
i installed apache but i donno how to work in that.. lol
 
But even when you've learned it, I think you'll find that answering these questions can be very frustrating.
First, they are among the most poorly phrased questions on the site.
Second, there are a lot of hidden reasons why your theoretically perfect solution will not work. So testing doesn't help all that much. After a while, I stopped testing.
 
hmm.
 
From a points standpoint, you'll get a few accepts but not many upvotes
In the last two weeks that I was answering questions (late July), I think I had stopped answering mod-rewrite questions. It's interesting to learn but, for me, not very rewarding on an answering level.
 
"I had stopped answering mod-rewrite questions", i think not only the mod-rewrite questions
 
11:28 PM
I'd say 90% of the questions in mod-rewrite are asked by non-programmers
(Not sure what the benchmark would be for other tags... And it depends on what one means by "programmer")
Hey I'm not discouraging you from learning... Just sharing my experience of answering. Learning is great, definitely, go for it! :) :)
 
11:45 PM
I tend to avoid .htaccess/modrewrite questions for several reasons:
- The question is unclear
- The desired output is unclear
- The OP doesn't know what he really wants
- The OP has a complete different setting than yours: this is one of the most frustrating part since it may all work fine on your machine but it won't on the OP's crappy shared-hosting
- The OP has 0 experience with regex/linux let alone rewrite shizzle
- The OP thought he asked the right question but only after you provided a solution he realises that it's not the desired output
I don't like this ping-pong-ish game
I also really hate when the OP only replies "doesn't work"
 
nice..
 
Note that there's not really something special about the syntax itself, since modrewrite uses PCRE
^ not sure if it really uses PCRE but at least the syntax is the same. I won't be surprised if advanced features like recursion wouldn't work
That said, don't learn something new just so you could be able to answer questions on SO.
If you're a skilled regex wizard, you could just drop the whole modrewrite topic.
Of course it's interesting to at least take a look at the docs maybe you will need it in the future. But again, it's so simple if you're a wizard.
I would learn/do something else.
Well, that's my opinion...
Good night :)
 
Gud ni8, its 5:25 AM here.
 
haha almost 2am here but I need to get up around 7...
 

« first day (532 days earlier)      last day (3260 days later) »