Does as2 support regular expressions?
I'm coding in AS2 using CS4 if it matters. Can I use regular expressions in this environment?
AS2 doesn't come with regular expression class but oters have written them. I found a good one. http://www.jurjans.lv/flash/RegExp.html
Similar Messages
-
Validate form entries: does java support regular expressions?
i want to validate form entries, does java support regular express like javascript?
Just recently in 1.4 regex was finally introduced :)
Take a look at http://developer.java.sun.com/developer/technicalArticles/releases/1.4regex/ -
Do J2ME support Regular Expressions?
If yes, how can i do that
i want to get a html page by the j2me
and use Regular Expressions to get all link from it (eg. http://yahoo.com/123.php )you can write your own code to do it parsing the text using a blank space to separate words, then analize them. I guess sun wont support regular expressions sooner but you can code it if needed.
-
Does MARS support ACS Express 5.0?
Hi guys... Does anyone know whether MARS supports ACS Express 5.0? I tried to add the ACS Express 5.0 device but there was not this version of ACS on Reporting Applications tab of Cisco MARS.
Thanks all.MARS does not support ACS Express 5.0
Only ACS version 3.x and 4.x are supported as per the following document:
http://www.cisco.com/en/US/docs/security/security_management/cs-mars/6.0/compatibility/local_controller/dtlc60x.html#wp75381
Hope that helps. -
Does Applescript include and support Regular Expressions?
I'm starting to study regular expressions, and I just discovered AppleScript. So I wondered if AppleScript - or some other Mac utility - offers features that help with regular expressions.
I'm trying to figure out a variety of search and replace operations. For example, I'd like to copy a table, then replace every row in Table A that includes the word "billion," replacing every row with the word "million" in Table B.
I just wondered if AppleScript offers any shortcuts for figuring out complex regex operations like this.
Thanks.While AppleScript has the usual kinds of comparisons, I don't know if I would consider them regular expressions. The Terminal gives you access to various utilities that do use regular expressions - see the bash and re_format manual pages.
-
JDK 1.6 Supported Regular Expression Optimizations
Hi all,
Thanks in advance for your help.
I'm reading Mastering Regular Expressions my Jeffrey Friedl. In Chapter6, the author discusses many regex engine optimizations that are out there. Is there a complete list of these optimizations that are supported by the latest version of JDK 1.6?
Thanks.Hi
Check this Note 716604 - Access to Sun J2SE and recommended J2SE options
http://java.sun.com/products/archive/
Regards
Uday -
My Airport utility is the latest version 6.3.2 but it does not support my AirPort Express (802.11a/b/g). I tried to download an earlier version but it wont let me.
Apple no longer supports these earlier base stations. If you wish to retain using an older 802.11g AirPort base station you will be left with only a few choices in order to administer it: 1) Use a Mac with an earlier OS X operating system, Snow Leopard or Leopard, or 2) Use a Windows XP or Windows 7 computer running AirPort Utility for Windows.
-
Hi I am having problems trying to download apps with the express checkout
Hi and welcome to the forums!
The 8300 is not listed in the device upgrade table for Blackberry device OS v5.0. The newer versions of apps like Twitter and Facebook require device OS v5.0 to run correctly. Might be time to consider a new device!
Thanks,
Bifocals
BlackBerry Device Software 5.0 main support page
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
Does AS2 support concurrent programming
It just ocurred to me last night that my current flash
project could suffer from concurrent execution problems. for
instance, two different movies try to check and modify the same
global variable. If the function that checks/modifies this global
array gets interrupted then I could get some really bizarre
results.
does actionscript 2 have any language support for disabling
interrupts? are there any resources that describe flash's
multithreading behavior? is it really multithreaded?hi kglad! i'm always honored when you respond.
Flash definitely has at least has some quasi-multithreading
going on...maybe it's not true multithreading (as in it capitalizes
on a quad-core cpu) but it does exhibit some semblance of
multithreading behavior.
for instance, suppose I spawn ten movie clips on the first
frame of my flash project, each of which contacts a different
webserver and handles the results with an onLoad event. While the
execution of the outgoing requests might be predictable (or is
it?), somebody somewhere is multithreading to handle the
synchronization required to get all those responses back into my
flash movie. I have no guarantees about the sequence in which the
onLoad events will be executed and I'm not even sure that one
particular onLoad event won't be interrupted to start another
onLoad event. see what i mean? What level of granularity can I
expect from Flash code execution? Are there any hard-and-fast rules
about when code is interrupted and when it's not?
I was hoping to learn a bit more about how Flash simultes
this concurrent execution. -
Regular Expressions in num-exp
Hello All,
I had a problem on my SRST gateway with num-exp insterting a repeating pattern into my 7-digit dialing when in fallback mode.
For a brief example, the 7digit internal dialing is 21621.. or 21622..
The num-exp statement of 'num-exp 2... 2162...' was not allowing me to 7-digit dial directly from one IP phone to another while in fallback mode.
When I dialed 2162154 the 2162 would hit the num-exp and be expended to 2162162.
I have a work around that uses a voice translation-rule, applied to the call-manager-fallback config that will translate a 7-digit dialed string to the 4 digit dialed string which then hits the 4-digit to 7-digit num-exp and it is working fine.
However, I was wondering if there is a way to use regular expressions in num-exp so that perhaps I can skip the intermediate step of using the translation-rule. Based off my existing translation-rules that are working properly, I figured something like this might work for num-exp:
'num-exp /^2\([12]..$\)/ /2162\1/'
But when I try to issue a num-exp with a regular expression I get the following message.
Incorrect format for Number macro pattern
regular expression must be of the form ^((\+)?([0-9#*A-F.]|(\\\*))+(\$)?)$
I have tried a number of different combinations with no success. I always get the same message. The regular expression that I tried first was:
'num-exp ^2... 2162...'
This is when I first saw the "Incorrect format..." message and figured that is must be possible. Is this just a generic warning similar to when you try to use complex regular expressions with the 'translation-rule' command vs. the 'voice translation-rule' command and in reality you cannot use regular expressions in the num-exp command?
Thank you,
LeoHi Chris,
Thank you for taking the time to answer my question. It looks like the answer is no, num-exp does not support regular expressions.
I don't insist on using num-exp for this I was just hoping to kill two birds with one stone and possibly skip the intermediate step of translating the 7-digits dial to 4-digits using a translation-rule just to expand from 4-digit to 7 again. This is only an issue while in SRST if a user tries to dial using 7-digits. We have a 7-digit internal dialing scheme and normally my num-exp is just to expand the 4 digits sent from the telco to our 7-digit internal dialing. The problem is that both our prefix and part of our DID range start with 21 so while in SRST if a user tried to dial a 7-digit DN, say 2162154, after they dialed the 4th digit (2162) that pattern would hit the num-exp and get expanded to 2162162. I was hoping to create a num-exp using a regular expression that would only expand a four digit string that begins with a 2 to seven digits and not any string that begins with a 2. This would 1) expand the four digits sent from the telco and 2) not match a seven digit string that begins with a 2 such as 2162154 which may be dialed by a user.
Again, this is only an issue while in SRST and I have a pretty good work around so I'm fine with not being able to use a regular expression as part of my num-exp config. I just thought it would be a cool application of a regular expression if it was possible.
Thanks again for answering my question.
Leo -
Regular Expression and PL/SQL help
I am using Oracle 9i, does 9i support regular expression? What functions are there?
My problem is the birth_date column in my database comes from teleform ( a scan program that reads what people wrote on paper), so the format is all jacked up.... 50% of them are 01/01/1981, 10% are 5/14/1995, 10% are 12/5/1993, 10% are 1/1/1983, 10% are 24-JUL-98. I have never really used regular expression and pl/sql, can anybody help me convert all of them to 01/01/1998?
Does Oralce 9i support regular expression? What can I do if oralce 9i does not support regular expression? Thank you very much in advance.9i doesn't support regular expressions (at least not in the 10g regular expressions sense. There is an OWA_PATTERN_MATCH package that has some facilities for regular expressions). But it doesn't look like this is a regular expressions problem.
Instead, this is probably a case where you need to
- enumerate the format masks you want to try
- determine the order you want to try them
- write a small function that tries each format mask in succession until one matches.
Of course, there is no guarantee that you'll ever be able to convert the data to the date that the user intended because some values will be ambiguous. For example, 01/02/03 could mean Feb 1, 2003 or Jan 2, 2003 or Feb 3, 2001 depending on the person who entered the data.
Assuming you can define the order, your function would just try each format mask in turn until one generated a valid date, i.e.
BEGIN
BEGIN
l_date := TO_DATE( p_string_value, format_mask_1 );
RETURN l_date;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
BEGIN
l_date := TO_DATE( p_string_value, format_mask_2 );
RETURN l_date;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
BEGIN
l_date := TO_DATE( p_string_value, format_mask_3 );
RETURN l_date;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
BEGIN
l_date := TO_DATE( p_string_value, format_mask_N );
RETURN l_date;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
RETURN NULL;
END;Justin -
Regular Expression Filter Mapping In Web.xml
I have a situation where I need to filter URL's that don't have a file extension. There are hundreds of URL's, so i can't specify each one separately.
From what I understand, you can have a filter mapping in web.xml to map certain file extensions to a filter, such as :
<filter>
<filter-name>MyFilter</filter-name>
<filter-class>com.filters.MyFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MyFilter</filter-name>
<url-pattern>*.esi</url-pattern>
</filter-mapping>
...where all files of extension .esi go through the filter. Additionally, I want to map all url's WITHOUT a file extension to pass through this filter. So if I have a request for "http://myserver.com/home" it will pass through the filter.
Does weblogic support regular expressions for pattern matching in filter-mapping? If so, can you provide examples or links to documentation?
Thanks,
JimNo, regular expressions are not supported. You can specify the mapping with extensions, or with paths, not at the same time in the same mapping specification. However, you can specify two servlet mappings, one with extension, and one with path.
The exact wording from the spec (2.4) is as follows:
In the Web application deployment descriptor, the following syntax is used to define
mappings:
• A string beginning with a ‘/’ character and ending with a ‘/*’ suffix is used
for path mapping.
• A string beginning with a ‘*.’ prefix is used as an extension mapping.
• A string containing only the ’/’ character indicates the "default" servlet of
the application. In this case the servlet path is the request URI minus the context
path and the path info is null.
• All other strings are used for exact matches only. -
XML node name matching with regular expressions
Hello,
If i have an xml file that has the following:
<parameter>
<name>M2-WIDTH</name>
<value column="09" date="2004-10-31T19:56:30" row="03" waferID="PUK444150-20">10.4518</value>
</parameter>
<parameter>
<name>M2-GAP</name>
<value column="29" date="2004-10-31T19:56:30" row="06" waferID="PUK444150-03">2.864</value>
</parameter>
<parameter>
<name>RES-LENGTH</name>
<value column="29" date="2004-10-31T19:56:30" row="06" waferID="PUK444150-03">2.864</value>
</parameter>
Is there anyway i can get a list of nodes that match a certain pattern say where name=M2* ?
I cant seem to find any information where i can match a regular expression. I see how you can do:
String expression=/parameter[@name='M2-LENG']/value/text()";
NodeList nodes = (NodeList) xPath.evaluate(expression, inputSource, XPathConstants.NODESET);
But i want to be able to say:
String expression=/parameter[@name='M2-*']/value/text()";
Is this possible? if so how can i do this?
Thanks!As implemented in Java, XPath does not support regular expressions, but in most cases there are workarounds thanks to XPath functions. Correct me if I'm wrong, but setting your expression against the XML document (i.e. because there are no "name" attributes in the whole document) I think you mean to get the value of the <value> elements that have a <parameter> parent element and a <name> sibling element whose value starts with "M2-". If that is the case, you can use the following query expression:String expression = "//parameter/value[substring(../name,1,3)='M2-']";Sorry if I misunderstood the meaning of your expression, but I hope this will help you get the hang of using XPath functions as a substitute for regular expressions.
-
Lexmark does not support USB printing with Airport express
See email from Lexmark:
Hi Herman,
Welcome to Lexmark e-mail support. I appreciate your query into Lexmark.
Lexmark Inkjet printers are host based & work only USB attached. Currently Lexmark International does not support Airport Express on these printers.
If you have any more questions or concerns, please contact me at your convenience and I will be happy to assist you. (If I am not available, another representative will reply to you as soon as possible.) To respond, please select "Reply" in your e-mail software, and be sure that the past e-mail is included in this reply.
Regards,
Arshad
Lexmark Technical Support
***Original Message***
On Sun Jun 18th 03:20:53 PM EST 2006, hernan.
Dear Mamta,
Thank you very much for your support. I already tried what you
mention, but still without success. I downloaded again the x1100 all
in one driver but still I can't print.
Any suggestions?
Thank you,
Hernan
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Sunday, June 18, 2006 7:30 AM
To: hernan
Subject: Re:Lexmark Technical Support (Req# 942782055)
Dear Hernan,
Thank you for contacting us regarding this matter. I appreciate the
opportunity to assist you, and I hope my suggestions will provide a
resolution.
Please follow the steps given below:
1. Click on "Start," "Control Panel" and "Printers and Faxes."
2. Right click on the Lexmark printer icon.
3. Click on "Properties."
4. Click on "Ports" tab.
5. Place a check mark against "Enable Bidirectional Support."
6. Click on "OK."
You may copy and paste the web address given below to access the
Lexmark 1000/1100 Color Jet printer Windows XP driver:
http://downloads.lexmark.com/cgi-perl/downloads.cgi?ccs=229:
1:0:1:0:0&emeafr
ame=&fileID=1580&searchLang=en&searchLang=en
Please use the following steps to download the Lexmark 1100 Color Jet
printer Windows XP driver to your desktop:
1. Click on "Download Now."
2. On the "File Download" screen, choose "Save."
3. The next screen will be titled "Save As." Choose to "Save in
Desktop"
and click "OK."
4. You should see files being transferred.
***Note*** If your browser uses a different file downloading format
than specified above, you will need to resort to your browsers help
files for downloading instructions. The object of steps 1 - 4 is to
download the driver to your desktop. This way it is easily accessible.
5. Once the files have completed downloading, double click on the icon
with your file name.
6. On the "Win Zip Self-Extractor" screen click "OK."
7. To unzip the downloaded file choose "Unzip."
8. A screen will then display the number of files unzipped
successfully, click "OK."
9. Please follow the on screen instructions to complete installation
of your Lexmark printer.
If you have any more questions or concerns, please contact me at your
convenience and I will be happy to assist you. (If I am not available,
another representative will reply to you as soon as
possible.) To respond,
please select "Reply" in your e-mail software, and be sure that the
past e-mail is included in this reply.
[AOL Users: In order to include the previous e-mail, you must
highlight it with your mouse when you are replying.]
If you need to reply, please be sure to include in your message all
information from prior e-mail messages & replies. If your e-mail
client automatically deletes prior e-mail thread information, it will
cause a delay while we look up your support history. If this is the
case you may want to save the old e-mails as attachments and attach
them to the current e-mail.
Sincerely,
Mamta V
Lexmark eSupport Team
http://support.lexmark.com
Rate Your Support Experience! Your feedback is extremely valuable to
us.
Please click the link below to participate in the Lexmark Customer
Support Survey.
http://support.lexmark.com//cgi-bin/survey.cgi?getSurveyID=7
07&getSurveyName
=
***Original Message***
On Sat Jun 17th 06:20:55 AM EST 2006,
hernan.>
I purchased the Apple airport express that connects
multiple
wireless-networked PCs to a usb printer.
is there a driver that can make this work?. I configured
the printer
according to the manual, received a test page and so on, but now it
takes ages to start printing and printing never gets to 100%
completion but to 99%. I am not able to cancel printing jobs and this
is a whole mess.
Best regards,
Hernan
vaio pcg-6c2l and IBM x40 Windows XP Both service pack2Did you have a question?
-
Regular expressions in JavaScript for CP5?
I'm having trouble implementing a regular expression from within the JavaScript window. First of all, does CP 5 support regular expressions?
On slide 1 I have a Text Entry Box, (called TheTeb) with a Submit button. TheTeb has variable associated with it called TypedText.
In the box, the user may type anything.
On slide 2 there is a caption.
The caption must show the text that the user typed into TheTeb but filtered so that only the letters, numbers, and spaces can be shown.
For example,
if the user types: 123 & abc /DEF
the caption will show: 123 abc DEF
This requirement is represents the behavior of an application that I am simulating, so I don't want to change the interaction in any way.
My strategy is to use 2 different variables, one for the text entry box (TypedText), the other for the caption (FilteredText). I can add JavaScript to the On Enter event of slide 2. The script will Get the TypedText, pass the TypedText to FilteredText, and run a regular expression somewhere so the filtered text displays on slide 2.
Here's the script so far:
var objCP = document.Captivate;
var ScriptTypedText = objCP.cpEIGetValue('TypedText');
function ReturnValue(){
objCP.cpEISetValue('FilteredText', ScriptTypedText);
ReturnValue();
The script works as is. The user types text on slide 1 (as TypedText), presses Enter and the text shows up on slide 2 (as $$FilteredText$$). Obviously, the trouble is, I don't know where to add my regular expression into the JavaScript so the text actually gets filtered. Do I make a new function?
By the way, a sort of pseudocode syntax for the expression would be:
FilteredText = TypedText.replace(/ /g,"");
Maybe you are looking for
-
How to rotate and translate an object at the same time??
Hi, I have a problem with rotation and translation of an object at the same time. I wrote a behovior class for my object (a cylinder). When some conditions are true the cylinder is added to a robot arm. Then it is translated so that the cylinder woul
-
Adding selection parameter in VF04 selection screen
Hi Gurus... I need to add a selection parameter on selection screen of VF04 transaction. Is it possible to do so? If yes, please tell me how. Thanks.
-
ECC6 integrated ITS default port 8000 changed to http port 80
We want the ECC6 integrated ITS default port 8000 changed to http port 80. The integrated ITS Cat2 transaction is currently working on http port 8000. I changed the icm/server_port_0(Instance Profile) and the ICM Monitor Active Services(smicm ser
-
Is it possible to cancel a remote erase command set in the Find my iPhone app?
I have recently been reunited with my 17" MacBook Pro by the police after it was lost. To cut a long story short I initiated the "erase mac" element as I thought I wouldnt be seeing my MacBook again. Sooooo........... now having the computer in my po
-
How do I do a gradient effect of sepia for my photo?
I really need help with trying to do a sepia effect on my photo but make it gradient as well! Got any ideas? It's urgent!!