RegExp to remove the character of object code? [JS CS4]
I have a routine that generates a list of titles & trie, who ends up as bookmarks. Where a title contains an anchored object, the text resulting includes a glyph, a small area dotted with "OBJ" in it, which seems wrong in the final list of bookmarks. The use of string.charAt (x) for the character returns 65532.
I suppose I could write a function that goes through the characters of the sentence and ignores any 65532, but that seems like overkill, if there is a regexp replacement string. I already run string.replace (/ \s + / g, "") to replace the non-space ctrl invisible w/space characters, but this model does not affect the character of the object. This rings a Bell with anyone?
Thank you.
It's the "anchored object marker" (name of InDesign) or 'Object replacement character' (Unicode name). 65532 in hexadecimal is FFFC, so in java/javascript unicode notation, it is "\uFFFC.
myString = myString.replace(/\uFFFC/,"");
You can use this to find the value of a character hexadecimal unicode:
myString.charCodeAt(myIndex).toString(16)
Tags: InDesign
Similar Questions
-
How to remove the character within a text.
How to remove the character within a text.
If I have a text like: "[4, 5, 6, 3, 9]" How can I remove the commas?
Thank you
and Merry Christmas.A possible technique would be to use a repetition structure that loop until all of the commas are removed:
on mouseUp me
theString = '[4, 5, 6, 3, 9].
Repeat while theString contains «,»
thePos = offset ("," rope)
delete theString.char [thePos]
end repeat
put the rope
end mouseUpHowever, this probably isn't the most effective technique if you are dealing with very long strings.
If you use the JavaScript syntax, you can strip characters with a regular expression.
-
How do you remove the "boilerplate" in your code?
Thanks to the help I got here, I'm actually starting to get the hang of this application so let me start by saying THANKS!
My question: is it possible to strip all the boilerplate text in my code... you know the information that comes by default in a model? I know it's probably not necessary, but I want my work to be as clean as possible.
William Vondracek wrote:
I'm on a Mac, if that makes a difference.
Yes, it makes a difference. I just tested this download in Safari and Firefox on a MacBook Pro.
Safari, exasperating way to Apple of thought, he knows better, adds it automatically on behalf of .xml file. Firefox does not work.
Even when I removed the .xml in the Finder, Dreamweaver still couldn't open it, because Mac OS X still decided once he knew better than me. Instead of actually remove the .xml extension, he was simply hiding it!
I needed to select the file in the Finder, then press command - I to open the Get Info, delete the .xml it and clear it to hide the file name extension. Then it worked.
The file does not need to be registered in any particular place, but she must have the .dwr file name extension.
I'll add a note to the instructions on my site. Thanks for alerting me to this problem.
-
Composition of blackBerry Smartphones remove the 0 after country code
Hello
When I try to call my blackberry to Itlay (00390131XXXXXX) dial the number without the 0 after code country (+ 39131XXXXXX) and of course the number is not because it is a mistake.
Does anyone know the option to remove this property?
Thank you
Luke
Welcome to the forums.
Check the smart dialing properties, you have put in place. Click on the Phone/Call Log icon, then go to Options-> Smart Dialing. There are some predefined numbering set up there rules that you may need to change.
-
Is it safe to remove the desktop_all.min.js code
Hello
I use apex 4.2.6.
I opened desktop_min.all and I noticed a large amount of code I'm pretty "safe", I have no use for some applications. This affects mainly the jQuery UI library
jQuery.UI.Core.js, jquery.ui.position.js, jquery.effects.drop.js...
I have no idea what are these things, and I wonder if I really need them. Of course some things that I still need and use it as a date picker.
No one attempted to remove these libraries included? I feel like they are useless bloat so I never used them but they are in simple applications.
Para wrote:
Thank you for your response.
I absolutely agree that there should be no expansion if the script is cached.
Now, excuse me if I'm wrong because I'm still new with this stuff (cached).
But it seems that desktop_min is not cached for me.
http://i.imgur.com/tKtiwdh.PNG
Length of the content still is 263KB.
Right, this is not cached it. Compare the status code of 200 response with the 304 return code when the cached file can be used (e.g. using apex.oracle.com). Is that served as a WebLogic or independent ADR?
If I understand correctly caching is something that I would on my web server. In this logical web case and it is not something that I'll have everything in developing locally since I only use of ADR.
Fix. See the documentation for the web server to learn how to set up caching.
Optimize the dissemination of content from the server by using caching, compression etc is the way to improve the performance here, rather than messing around with the contents of the files of APEX. If performance in the development environment is considered to be a problem, install a server/ADR battery good app it almost certainly much less time than the potential disaster inherent in standard editing of APEX.
-
Why Illustrator CC 2015 removes the text and objects when I export my work to JPEG or TIFF?
Basically I have never encountered this problem on my Macbook Pro, but I just bought a new iMac and I get this problem. In order to reduce the PDF proofs to the United States and China, I tend to the artboard export to TIFF / JPEG import back into Illustrator CC 2015 and save as PDF. But whenever I have export my work plan and an overview of JPEG or TIFF, Miss me the elements in the document. Even after the expansion of the text in vector objects based objects, they continue to disappear. Can anyone help? Thank you
You can have white points set to overprint. Select the bullets and in attributes palette remove overprinting.
Evidence before making a .jpg file to view > overprint preview. In fact, I leave that to all most of the time.
Is that Zapf Chancery have not seen in a long time.
-
How to remove the character from new line at the beginning of the attachment?
Hi all
I tried to attach a .dat file that is generated to an external source and send it as an attachment by e-mail with UTL_SMTP, all things work, but the .dat file that is attached in email contains a new line that is Chr (10) on the start line and the content of the file is written to the second line from. This is a part of the code that deals with reading/writing of the attachment of mail to send.
Someone can help me on this point, is something to be changed in this code?
UTL_SMTP.write_data (c,
'Object ' | ': ' || P_SUBJECT | UTL_TCP. CRLF);
UTL_SMTP.write_data (c,
"MIME-Version: 1.0 ' |" UTL_TCP. CRLF. -Use the MIME e-mail standard
' Content-Type: multipart/mixed;' | UTL_TCP. CRLF.
""boundary ="- SECBOUND" ' | UTL_TCP. CRLF.
UTL_TCP. CRLF);
UTL_SMTP.write_data (c,
'- SECBOUND' | UTL_TCP. CRLF.
' Content-Type: text/plain; "|| UTL_TCP. CRLF.
' Content-Transfer_Encoding: 7 bit' | UTL_TCP. CRLF.
UTL_TCP. CRLF);
UTL_SMTP.write_data (c, UTL_TCP.crlf | l_text);
UTL_SMTP.write_data (c, UTL_TCP.crlf);
UTL_SMTP.write_data (c, UTL_TCP.crlf);
-----
UTL_SMTP.write_data (c,
'- SECBOUND' | UTL_TCP. CRLF.
' Content-Type: text/plain; "|| UTL_TCP. CRLF.
"name="/inetpub/wwwroot/Novation_Merge/FS_Extract.dat"' |"
UTL_TCP. CRLF.
' Content-Transfer_Encoding: 8 bit' | UTL_TCP. CRLF.
' Content-Disposition: attachment;' | UTL_TCP. CRLF. "filename =" ' | p_description |
TO_CHAR (SYSDATE, 'DD-MON-YYYY') | ".dat" ' | "
UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);
--------------------------------------------------------------------------------------
BEGIN
l_filehandle: = UTL_FILE.fopen ("c:\temp",
"FS_Extract.dat,"
« r »,
32767);
LOOP
UTL_FILE. GET_LINE (l_filehandle, l_buffer, 32767);
UTL_SMTP.write_data (c, l_buffer |) UTL_TCP. CRLF);
END LOOP;
EXCEPTION
WHILE OTHERS THEN
NULL;
END;
UTL_FILE.fclose (l_filehandle);
UTL_SMTP.write_data (c, '- SECBOUND-');
-----
UTL_SMTP.close_data (c);
UTL_SMTP. Quit (c);
EXCEPTION
WHEN UTL_SMTP.transient_error OR UTL_SMTP.permanent_error THEN
BEGIN
UTL_SMTP. Quit (c);
EXCEPTION
WHEN UTL_SMTP.transient_error OR UTL_SMTP.permanent_error THEN
NULL;
-When the SMTP server is down or unavailable, we do not have
-a connection to the server. Triggers the call to quit one
-except that we cannot ignore.
END;
RAISE_APPLICATION_ERROR (-20000,
"Failed to send messages because of the following error: ' |"
SQLERRM);
END;
Thank you
Amol-I remember correctly, a single empty line serves as a separator between the header Mime and Mime body.
Copy the following code...
UTL_SMTP.write_data(c, '-------SECBOUND' || UTL_TCP.crlf || 'Content-Type: text/plain;' || UTL_TCP.crlf || ' name="/inetpub/wwwroot/Novation_Merge/FS_Extract.dat"' || UTL_TCP.crlf || 'Content-Transfer_Encoding: 8bit' || UTL_TCP.crlf || 'Content-Disposition: attachment;' ||UTL_TCP.crlf || ' filename="' || p_description || TO_CHAR(SYSDATE, 'DD-MON-YYYY') || '.dat"' || UTL_TCP.crlf || UTL_TCP.crlf ||UTL_TCP.crlf);
.. generates 2 blank lines after the Mime header.
Delete the last CRLF and see if this fits the Bill.
-
How to remove the notification: error object
Error object
How can I get rid of the pop up screen, error object, I have Windows Vista (32 bit).
I did anti virus scan and I also have the system restore (even different date 3 times)Hello gooddressedman,
I'll have to ask a few questions to get a better idea of this problem. Please try your best to answer the following questions.
Question 1. The number of applications is what happens to? Please name most of them.
Issue 2 What is the full error you receive? This has started happening recently or has always been this way?
Issue 3 What has changed since this started?
Issue 4 What type of anti-virus and firewall are you using?
Please let me know the above information so that we can better help you.
Debbie
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Completely remove the Adobe computer identification code
I sell my old computer and it's why I want to completely remove my Adobe ID etc from my computer.
I already uninstalled all Adobe programs through creative cloud and after I registered my account.
My problem is that, when you open the sign in page, it still shows my e-mail address:
How can I delete my account completely?
Use of the Adobe Creative Cloud cleaning tool to solve installation problems can help
-
REGEXP to remove the suffix after substring
Hello guys, I have a little problem with a regular expression. I was wondering if someone can help me? What I want to do seems easy, but I can't find a solution. I want to extract all the text before the first parenthesis. I can easily do with a ' [^ ()] + "." But, in this text, if it ends with .old or .older, I want that they went too. For example, in the following scenario:
WITH data AS ( SELECT 'a.abc.d.old(1231)1313' AS d FROM dual UNION ALL SELECT 'f.foo.v.bar.older(15643)' FROM dual UNION ALL SELECT 'a.abc.d(464310)4464' FROM dual UNION ALL SELECT 'g.hij.k(4641)131' FROM dual ) SELECT d, REGEXP_SUBSTR(d, '[^(]+') AS x1, REGEXP_REPLACE(d, '^([^(]+)(\.dir|.dgdir)?$', '\1') FROM data;
I want that:
a.abc.d.old(1231)1313 a.abc.d f.foo.v.bar.older(15643) f.foo.v.bar a.abc.d(464310)4464 a.abc.d g.hij.k(4641)131 g.hij.k
Anyone have an idea how I can do this? Thank you
Hello
Try this:
WITH the data AS
(
SELECT ' a .abc .d .old (1231) 1313'd FROM dual UNION ALL
SELECT "f.foo.v.bar.older (15643) ' FROM dual UNION ALL
SELECT ' a .d .abc (464310) 4464' FROM dual UNION ALL
SELECT ' g.hij.k (4641) 131' FROM dual
)
D SELECT,
REGEXP_REPLACE (d, ' ^(.+?)) ((\.old)| (\.older)) ? \(.+\).*$', '\1')
DATA;
-
How to remove the lines of code at the level of the site with different content?
How can I remove the same lines of code at the level of the site?
I want to delete all of the code line up to 4000 pages 50 - line 80, but the lines do not contain the same code can not use 'find and replace '.
Any ideas would be appreciated - thanks.
SED
http://www.Panix.com/~ElfLord/UNIX/sed.html
Can you show us 2 examples of code to remove?
Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB -
Remove the onEnterFrame function
How can I remove the onEnterframe?
CODE:
function foo() {}
If (I > = endpoint) {}
do something
} else {}
remove the onEnterFrame?
}
}
btn_mc.onRollOver = function() {}
_root.onEnterFrame = myFunc;
}
:
CODE:
function foo() {}
If (I > = endpoint) {}
do something
} else {}
Remove _root.onEnterFrame;
}
}
btn_mc.onRollOver = function() {}
_root.onEnterFrame = myFunc;
}
-
How to remove the charater of a value in column
Hi could someone please enlighten me how?
I called CAMAPIGNS table, there is a column called NAME without length limit.
Data already in my table I want to remove the character more than 100 length of the NAME column.Update CAMAPIGNS set NAME=SUBSTR(NAME,1,100)
-
With the help of this thread:
I create the following script:$svcRef = new-object VMware.Vim.ManagedObjectReference
$svcRef.Type = 'ServiceInstance.
$svcRef.Value = 'ServiceInstance.
$serviceInstance = get-views $svcRef
$authMgr = get-view $serviceInstance.Content.authorizationManager
$entity = get-View (Get-VM-name VMNAME) USER.USER
$authMgr.RemoveEntityPermission($entity.) MoRef, "Domain\user", 0)
It works, but I can that shorten? All that I want is to remove the user "USER" object "VMNAME".
Daniel
With the latest VITK you can shorten it a bit.
$authMgr = Get-View AuthorizationManager $entity = Get-VM -Name VMNAME | Get-View $authMgr.RemoveEntityPermission($entity.MoRef,"DOMAIN\USER",0)
-
Hello
I'm usign Oracle 11 g R2 SOE,
Please open this link on Fire Fox, you get an error pointing to a strange character.
FAM-ERP.com/apex/apex_rest.getReport?App=101 & page = 5000 & reportid = JUST
I'm tired of using different Regexp but do not claim. The string can contain letters, numbers, punctuation
How can I get rid off the coast of this strange character?
Best regards
FatehHi Fateh,
First of all, I would like to try to understand why your code displays this weird character. Remove the unknown character away the problem.
If you want to remove it anyway you can try with REGEXP_REPLACE all characters out of reach you need.
Try again withREGEXP_REPLACE(varname,'[^ -~]')
which is to detach characters out of the beach, chr (30) to tilde, chr (126).
You may need to extend this range according to your needs to include additional characters.
Kind regards.
Al
Maybe you are looking for
-
Accidentally deleted audio driver! Help!
I accidentally erased my sound driver. can you help me get it back, or will I have to pay?
-
How long it takes to download Service Pack 3
Hello Sir, my computer already has Service Pack 2. So, according to your instructions, I tried to download the Service Pack 3. It seems that it is down load but he admits it takes 6 hours. Is it true or I understood wrongly. In addition, the comp
-
Shortcut to open a Web site using a specific browser
I have a couple of browsers installed because of the support of different Web sites. I need to create shortcuts for opening Web site specific browser. Can someone advise how to create these shortcuts. Thank you!
-
Live File Format provided no disk space when the files have been deleted
I used Live File Format 2.01 to copy files to a DVD + R, then one of the deleted files, but I didn't find the disk space and can not copy another file in the space previously used. I use Windows 7.
-
Is there a way to bypass this allows me to save time and a nervous breakdown all re installed many things that I have attached to my laptop! I work from a top laptop and my life is on it and my external hard drive! I have my key product ready to go,