adriandeccico.com
Home
Projects
About
  • How to replace a substring using regex in Python

    Jun 6, 2010 · 1 min read · regular expressions programming python code  ·
    Share on:

    The problem: You match a string with your regex, but you need to replace just a portion of it. How can we do this? The trick is simple, put the text you want to replace within “()” which means “group” in regex language. If the regex works, you can replace just that portion by using Python match information, like in the …

    Read More
  • Multiline regex pattern

    May 6, 2010 · 4 min read · regular expressions c# programming python code  ·
    Share on:
    Multiline regex pattern

    1 Task: Parse a file and capture whatever text appears between a pair of double quotes like the following: “Catch me” Not so difficult, you could use the following regex: 1“.*” This will match any character within double quotes in a group ¿any? Well, if you have to deal with multi-line characters (CR / LF) like in the …

    Read More

Adrián Deccico

python -c "import this"
Read More

Featured Posts

  • GPT 3 Impressions
  • Automatic setup of Django 1.4, NGinx and GUnicorn on EC2 using Bellatrix
  • Setting up Django 1.3 + NGinx 1.0.5 + Green Unicorn 0.13 in an Ubuntu 11.10 EC2 instance
  • Introduction to Continuous Integration

Recent Posts

  • Avoid Spam With Multiple Email Aliases
  • The Egg of The Universe
  • The Master And Margarita - book review
  • GPT 3 Impressions
  • A couple of new Bellatrix posts
  • Automatic setup of Django 1.4, NGinx and GUnicorn on EC2 using Bellatrix
  • Setting up Django 1.3 + NGinx 1.0.5 + Green Unicorn 0.13 in an Ubuntu 11.10 EC2 instance
  • Introduction to Continuous Integration

Tags

CODE 9 PYTHON 6 PROGRAMMING 4 EC2 3 JENKINS 3 SYSADMIN 3 AI 2 BELLATRIX 2 C++ 2 CONTINUOUS-INTEGRATION 2 DJANGO 2 GUNICORN 2 HUDSON 2 NGINX 2
All Tags
AGILE1 AI2 AUTOMATION1 BELLATRIX2 BOOKS1 C#1 C++2 C++-BUILDER1 CODE9 CONTINUOUS-INTEGRATION2 DEVOPS1 DJANGO2 EC23 EMAIL1 FICTION1 GEOMETRY1 GROOVY1 GUNICORN2 HUDSON2 INDEX1 JENKINS3 LITERATURE1 ML1 NGINX2 PHILOSOPHY1 PRIVACY1 PRODUCTIVITY1 PROGRAMMING4 PYTHON6 REGULAR-EXPRESSIONS2 SYSADMIN3 TWITTER1 UBUNTU1 WINDOWS1 WINDOWS-API1
[A~Z][0~9]
adriandeccico.com

Copyright 2010-  ADRIANDECCICO.COM. All Rights Reserved