Remove numbers, letters and commas left of a xml tag
Posted: Thu Jun 28, 2012 10:51 am
Hi
I'm new to reg exp and I searched for hours but am more confused now than before!
I have an xml file with thousands of lines, many containing examples like:-
I need to remove the unique ISBN numbers plus the word ISBN and space and comma from all of the title tags , this is what I need to remove:-
, ISBN 978??????????
leaving only, in this example:-
Each ISBN is different (as is title and author) but I thought some reg ex such as:-
remove 20 char (numbers, letters, commas and whitespace) to the left of </b203>
would be the easiest way but I can’t find the reg exp for this.
Can anyone help please?
Thanks in advance
Dave
I'm new to reg exp and I searched for hours but am more confused now than before!
I have an xml file with thousands of lines, many containing examples like:-
Code: Select all
<b203>e-Study Guide for: Western Humanities, Complete by Roy Matthews, ISBN 9780073376622</b203>Code: Select all
<b203></b203>, ISBN 978??????????
leaving only, in this example:-
Code: Select all
<b203>e-Study Guide for: Western Humanities, Complete by Roy Matthews</b203>remove 20 char (numbers, letters, commas and whitespace) to the left of </b203>
would be the easiest way but I can’t find the reg exp for this.
Can anyone help please?
Thanks in advance
Dave