fractionMan
Custom Title
and isn't it captial R?
I haven't laughed so hard all day.PieEye said:this is about your cock again isn't it?
maestrocloud said:AND - they have balloooooons at offline?! SINCE WHEN?! WHY WAS I NOT INFORMED!??!?!?!

fractionMan said:And have the / not the \
mauvais said:(I hope) I'm not a proper geek but I think regular expressions are awesome. The language is genius. It's like a meaningful form of assembly, and crafting one is like building something out of matchsticks - one false move and the whole fucking thing won't make the slightest bit of sense any more and you'll have to start over again.
fractionMan said:and isn't it captial R?
they all do the sameman rm said:-r, -R, --recursive
It's frightening. Even now, two years down the line.So: in praise of the regular expression.
'^(?P<stem>.*?)((?P<desc>(?P<flag>[~#])|(?P<brak>[\[]))(?P<suf>\d{1,2}))?(?(brak)[\]])(?P<ext>\.[^\.]*)?$'

s/^(.* - )(.*) \((.+)\)(.*)$/$1$3 - $2$4/
Blimey. If I'm using a file renamer that supports RE (can I call them RE?), does that lot all go in the Find box and the Replace box stays empty?Code:s/^(.* - )(.*) \((\d+)\)(.*)$/$1$3 - $2$4/
I think


It's good for (a) batch renaming files, and (b) performing complex text edits without manually going through and changing everything.Is there a very very simple way of explaining to a computer idiot what a regular expression is & why it's good?![]()
![]()

It's good for (a) batch renaming files, and (b) performing complex text edits without manually going through and changing everything.
You won't need to know anything about them until you find a need to know all about them.![]()
)
Code:s/^(.* - )(.*) \((.+)\)(.*)$/$1$3 - $2$4/
should be fine I think
s/^(.* - )(.*) \((.+)\)(.*)$/\1\3 - \2\4/
I'll give it a shot. You know "find & replace"? Well, whetever you put into the "find" box is a very dumb regular expression. You're trying to match a certain combination of letters (and then, maybe, replace them with something else).Is there a very very simple way of explaining to a computer idiot what a regular expression is & why it's good?

I did escape my parentheses! The ones I _wanted_ to escape, anyway....