$emailaddress =~ s/^s+//;
Tag Archive for Expression
Remove Leading Whitespace (blanks) with Perl
Remove HTML with Perl Regular Expression
$cleancode =~ s/<(.*?)>//gi;
height
/***** this sets the max-width value for all *****/
div#division {
max-width: 777px;
}
/***** this sets the max-width value for IE *****/
* html div#division {
width: expression( document.body.clientWidth > 776 ? "777px" : "auto" );
}
Mexican RFC RegEx
^[A-Za-z]{4}-d{6}(?:-[A-Za-zd]{3})?$
Category: Uncategorized |
Tags: contribuyentes, Expression, federal, Mexico, regex, registro, regular, rfc
One liner perl extract content with regular expression
curl -s <a href="http://checkip.dyndns.org" >http://checkip.dyndns.org</a> | perl -nle 'print "$1" if (/Current IP Address: ([d.]*)/)'
Regular Expression to Separate the Anchor Part of a URL
private string GetAnchorPart()
{
string anchorExp = "[#].......";
Regex rex = new Regex(anchorExp);
Match anchorMatch = rex.Match(Request.RawUrl);
return anchorMatch.ToString();
}