![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2008
Posts: 12
Rep Power: 0
![]() |
If I have want to combine tags with compatible attributes like...
<font color="blue" font="Times"><font size="14"abcdegh</font></font> to <font color="blue" font="Times" size="14"abcdegh</font> as I have have it all in one scalar variable I thoughtI would have something like.. my $startFontTag="<font"; my $endFontTag="</font>"; $string =~ s/$startFontTag[\w*|\s*|\S*]$startFontTag[\w*|\s*|\S*]/$1/gi; but I dont think the above approach is going to work. Should I do something like first check the string to see if any occurence of </font></font> occurse then delete one of them and move back to check staring font tasg and to combine them. Thanks! |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Jun 2008
Posts: 12
Rep Power: 0
![]() |
Re: comptatible attributes
i got it working.
will post the solution sometime. this thread can be closed |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dataset.ReadXML: elements with attributes | kruptof | C# | 0 | Aug 13th, 2007 7:01 AM |
| help with node design | rwm | C++ | 2 | Jun 13th, 2007 2:36 AM |
| Directory attributes in C. | Kennedy | C | 1 | Aug 30th, 2006 1:13 PM |
| Command to find file attributes | Creator | Bash / Shell Scripting | 6 | Jun 6th, 2006 7:08 PM |
| function to get file attributes | Creator | C | 2 | Jun 2nd, 2006 9:13 AM |