sadly, i need to perform some regex operations on a myspace page
i'm running into a wall with tuning a regex to parse a user id link
This works :
my $RE_myspace_user= qr/myspace\.com\/([\d\w]*)(:?\/|$)/;
However, that could match some unwanted things, so I updated it...
This works (limit out their index and browse page ):
my $RE_myspace_user= qr/myspace\.com\/[^(?:index\.cfm|browse)([\d\w]*)
+](:?\/|$)/;
But thats' messy - sure they only use index.cfm, but something would be better to block all .cfm pages, so...
This doesn't work:
my $RE_myspace_user= qr/myspace\.com\/[^(?:[\w\d\_]\.cfm|browse)([\d\w
+]*)](:?\/|$)/;
it just generates an erro
i guess i can't put a character class in that nesting, which is fine -- does anyone have a suggestion to approximate it though?