recentpopularlog in

therobyouknow : regex   31

SubMatches Collection
How to extract out multiple matching substrings from a string using a regular expression with grouping curved brackets to identify each substring (group)
programming  regularexpressions  visualbasic  vb  vbscript  microsoft  development  windows  computing  work  howto  grouping  group  regex  regexp  extract  extraction  split  visual  basic  submatches  function  method  subexpressions  enclosed  capturing  parentheses  index  select  multiple  substring  curved  bracket 
june 2010 by therobyouknow
How to extract a directory and filename from a path in a string, Perl Regular Expressions - Kewl Splitpath One Liner Regex
Kewl Splitpath One Liner Regex

Check out this splitpath command:
my($text) = "/etc/sysconfig/network-scripts/ifcfg-eth0";
my($directory, $filename) = $text =~ m/(.*\/)(.*)$/;
print "D=$directory, F=$filename\n";
regular  regexp  regex  expression  regularexpression  match  matching  howto  programming  software  reference  development  perl  linux  tutorial  search  code  computing  coding  scripting  tip  path  directory  find  extract  filename  parse 
january 2010 by therobyouknow
Re: Regexp multiple match
my $s = "batcatbetnetbitfit";

my $p = "b.t";

my @matches = $s =~ /$p/g;
g is the key.
Put the regex in brackers () inside the // and use $1..$n to access the result from each bracket.
regex  multiple  match  perl  several  duplicate  repeat  pattern  occurence  programming  howto  work  computing 
november 2009 by therobyouknow
Perl Regular Expressions
One of the best guides: concise, comprehensive, friendly, useful illustrative examples.
regular  expression  guide  documentation  coding  programming  howto  reference  development  perl  software  tutorial  scripting  regex  definition  computing  work 
november 2009 by therobyouknow
Windows equivalent of Linux/Unix strings command to list strings from within a binary file. Free download. Unzip, runs straight out of the box. Accept license first time run, won't ask thereafter. Useful for reverse engineering proprietary binary files.
windows  equivalent  linux  strings  command  search  binary  file  os  operating  system  operatingsystem  embedded  computing  work  printable  character  sequence  text  ascii  within  find  howto  microsoft  download  free  reverse  engineering  reverseengineering  engineer  tool  utility  security  debugging  regex  sysinternals  forensics  proprietary  commandline  line 
november 2009 by therobyouknow

Copy this bookmark:

to read