« first day (510 days earlier)      last day (3282 days later) » 

12:27 AM
@HamZa You're welcome. There are lots of settings—you can put various test strings in the test file, run it a million times etc. Try pcretest --help
 
@zx81 I tried that but I was always not using a file
 
@HamZa Ah yeah the file mode is great. Do you have the full doc for pcretest? If not, it's in the ZIP file inside the download Letting you know because PCRE doc can be tricky to navigate. :) (As you know!)
 
@zx81 I should have it somewhere
 
@Unihedron Thanks for sharing your ongoing research. :) Yes the output is pretty nice, could probably be better if someone has the courage to dive into the C code. 5700 lines, I guess if you know where to look it's not too bad.
 
 
3 hours later…
3:55 AM
@Unihedron In the less usual category, found a good place to use a branch reset. Often when I look at it I think meh, could have done it easier another way. :)
 
 
3 hours later…
6:59 AM
@zx81 Wow that's sweet! I've never used a branch reset since I've learned them. :) But wait a second, it says in your subtitle "Branch Reset: (?! ... )", might want to change that to (?| ... ) :P
 
@Unihedron Mate, what a catch! Thank you for saving me from this embarrassing title. :)
 
It's hard to understand what this question means, but I think OP is looking for php-callback like replacement in java.
0
Q: How can use regex to find a pattern then replace only a part of the match

Phillip GibbI want to find all patterns in a string that match the regex: no="(\d+)" then replace the digits in the group with something else. In the method below I can find and replace the entire match, but that is not what I want. Is there a way to replace just a portion in that match? private String re...

Well done, that was exactly what I was thinking. :D
 
7:22 AM
@Unihedron I edited the title to make it clearer, but it didn't mention "last two digits". No, haven't noticed that.
> that was exactly what I was thinking
Mind meld. :)
Might start a movie and catch you a bit later.
 
Enjoy yourself! :)
 
 
6 hours later…
1:34 PM
I just parsed XML with regex...
0
A: Look for Nested XML tag with Regex

UnihedronSorry for the late answer, traffic was a nightmare. I hope you are ready for parsing XML with regex. First of all, let's define what XML tags would look like! <tag_name␣(optional space (then whatever that doesnt end with "/"))>(whatever)</␣(optional space)tag_name> <tag_name␣(optional space)/>...

 
 
9 hours later…
10:12 PM
Hello @HamZa, how can match file with space ?
Like "file with space.mp4"
 
@Martialp / /
 
like that "file\ with\ space.mp4"
 
@Martialp do you already have a regex? It's a bit hard to guess what you want, if you want to check for a space then / / would do the job. Note that you could just use your favorite function from your language
 
I mad a mistake, // do the job ! thx :)
 
@Martialp are you using php?
Anyways, you might use strpos() if you're using php
 
 
1 hour later…
11:37 PM
@Unihedron What, you parsed xml with regex? Bad boy, you better watch out for the anti-regex police. :)
Looks right from a distance, didn't read all the details as it's a bit dense. This could be a good place for a HamZodular `(?(DEFINE) ... )` regex, don't you think? Not saying you should do it, just that it strikes me as one of these situations. :)
 

« first day (510 days earlier)      last day (3282 days later) »