Search Results For “Tag:regex” - # - rss

JR: Regular Expressions with JavaScript - no \s like in perl, so : use [\s\S]* in regex https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions?redirectlocale=en-USredir... more>> 1 min read
- Dec 04, 2014 - #regex #javascript #programming


JR: Regex to grab ID from a Twitter post - https://github.com/jonnybarnes/posse/blob/master/src/Jonnybarnes/Posse/NotePrep.php /** * Grab the status id from a twitter URL * */ public function replyTweetId($url) { $regex = '/https?:\/\/twitter.com\/[a-zA-Z_]{1,20}\/status\/([0-9]*)/'; ... more>>
- May 07, 2014 - #indieweb #programming #regex


JR: Perl regex extracting domain name from URL code example - #!/usr/bin/perl -wT use strict; use Data::Dumper; # code from: # ( # test links taken from the front page of news.ycombinator.com on 2Oct2013 my @urls = ( https://groups.google.com/forum/#!topic/mechanical-symp... more>>
- Oct 02, 2013 - #perl #programming #regex


JR: Perl regex extracting domain name from URL - use strict; use warnings; use URI::Split qw/ uri_split uri_join /; my $scheme_host = do { my (@parts) = uri_split ' uri_join @parts[0,1]; }; print $scheme_host; If cannot install module: use strict; use warnings; my $url = ' my ($sch... more>> 1 min read
- Oct 02, 2013 - #perl #programming #regex



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 14, 2024 - 6:05 p.m. EST