Microsoft
Software
Hardware
Network
Question : Regex to remove content from alt attribute in image tag
Hi, I want to replace the contents from inside of an alt attribute in an image tag to just be "". So for instance, the following code:
<a href="
http://view.picapp.c
om/picture
s.photo/ne
ws/preside
nt-obama-
s
igns/image
/9397574?t
erm=barack
+obama
" target="_blank"><img src="
http://view.picapp.co
m/pictures
.photo/ima
ge/9397574
/
president
-obama-sig
ns/preside
nt-obama-s
igns.jpg?s
ize=234&
im
ageId=9397
574
" border="0" width="234" title="U.S. President Obama Signs Finance Reform Bill Into Law in Washington" height="288" oncontextmenu="return false;" ondrag="return false;" onmousedown="return false;" alt="U.S. President Barack Obama (2nd R) signs the the financial reform bill into law during a ceremony with (L-R) Rep. Paul Kanjorski (D-PA), Speaker of the House Nancy Pelosi (D-CA) and Senate Majority Leader Harry Reid at the Ronald Reagan Building and International Trade Center on July 21, 2010 in Washington, DC. A sweeping expansion of federal financial regulation in the wake of the worst recession since the Great Depression, the bill will create a consumer protection agency, lay out a blueprint for disassembling financial entities considered too big to fail, and many other reforms. UPI/Chip Somodevilla/Pool Photo via Newscom" /></a><script type="text/javascript" src="
http://view.picapp.co
m//JavaScr
ipts/OTIjs
.js
"></scr
ipt>
Should just be:
<a href="
http://view.picapp.c
om/picture
s.photo/ne
ws/preside
nt-obama-
s
igns/image
/9397574?t
erm=barack
+obama
" target="_blank"><img src="
http://view.picapp.co
m/pictures
.photo/ima
ge/9397574
/
president
-obama-sig
ns/preside
nt-obama-s
igns.jpg?s
ize=234&
im
ageId=9397
574
" border="0" width="234" title="U.S. President Obama Signs Finance Reform Bill Into Law in Washington" height="288" oncontextmenu="return false;" ondrag="return false;" onmousedown="return false;" alt="" /></a><script type="text/javascript" src="
http://view.picapp.co
m//JavaScr
ipts/OTIjs
.js
"></scr
ipt>
How can I do this using Regex in ColdFusion?
Answer : Regex to remove content from alt attribute in image tag
what appears when you right click on "Speakers - Realtek High Definition Output - Working"?
Set the speakers to be the default device and the default communication device.
let me know if anything changes with that.
Random Solutions
Mixing x32 and x64 apps and OS's
How to get two new Primary keys, sent to two Foriegn keys
Reccomendations for RAID configuration for SQL Server 2005
Mail not being sent
LDAP, Active Directory - Very specific priviledges
SpellNumber
Intel(R) Celeron(R) D CPU 3.06GHz on a Linux machine
How to stablish a proper setup in MS Outlook 2003 encrypting mails
Server 2008 quickest way to delete a large folder with millions of files
Office communicator user script