match Ndash and Mdash

Hi scripters

I am using the command match if the text in the selection summary ndash and mdash. Here's my step

myTxt = app.selection [0] .silence;

results myTxt "MC - AC"

var a = mytxt.match('–');

Alert (a);

I can't match really here, I get "null"? How can I match Ndash and Mdash?

Thanks in advance

concerning

a you are the

var a = mytxt.match (/ [\u2013\u2014]/);

Peter

Tags: InDesign

Similar Questions

  • I pay to match iTunes and I can stop listening to the radio. Apple keeps prompting me to pay for music from Apple. Why? Radio without advertising is included with iTunes game! It was listed as a feature in my terms of service I renewed for 1 year in Octob

    I pay to match iTunes and I can stop listening to the radio. Apple keeps prompting me to pay for music from Apple. Why? Radio without advertising is included with iTunes game! It was listed as a feature in my terms of service I renewed for 1 year in October

    iTunes Radio is no longer included in iTunes game. These same terms of service as Apple status may change the features included at any time.

    http://www.Apple.com/legal/Internet-services/iTunes/us/terms.html

    You can try calling Apple Service customer. People have reported that they were able to cancel iTunes game and get a pro-rated refund.

  • WHS 2011 and by connecting a Win7 without matching username and the name of the user directory

    Working with 2011 and by connecting a Win7 computer server said, are there computer autour or difficulty of connection of said work even if the user name and the directory of the user do not match? I think that's the question when connecting computers and I was wondering if there is no work around.

    Hello

    -Are computers in the domain environment?

    It is better suited for the IT Pro TechNet public. Please ask your question in the Forum on TechNet Support. You can follow the link to your question:
    http://social.Microsoft.com/forums/is/whs2011/threads

    Hope this information helps.
  • How to upgrade a selection one line of the table based on values in another table when there is exactly one matching entry and negligence if there is more than a football game

    Hello

    I'm trying to achieve the following objectives:

    1. in table A, select rows based on the values in column 2. something like SELECT * FROM TABLE A WHERE (COLUMN2 = 'X' or Column2 IS NULL)

    2 and these values selected, I want to update Column3 from Table A if TableA.column1 = TableB.column1, but only if there is exactly one game. If there are multiple matches, column 3 of the table article updated.

    That's what I've tried so far.

    UPDATE TABLE_A

    SET

    TABLE_A.COLUMN3 = (SELECT COLUMN3 OF TABLE_B

    WHERE ((TABLE_B.COLUMN1 = TABLE_A.COLUMN1) AND ( TABLE_B.COLUMN1 IN (SELECT Column1 FROM TABLE_B GROUP BY COLUMN1 , HAVING COUNT (*) = 1)))

    WHERE EXISTS (SELECT * FROM TABLE_A)

    WHERE ((TABLE_A.COLUMN2 = 'X' OU TABLE_A.COLUMN2 = 'Y') AND (TABLE_A.COLUMN4 IS NULL OR TABLE_A.COLUMN4 = ' ')));

    More details on my DB environment:

    Version Info:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    Toad, but, depending on whether the query updated all lines. I would really appreciate if someone could tell me how to fix my request.

    Thanks in advance.

    Exists it predicate in the block of update will be set to true if there is at least one row in table_a where column2 is X or Y and column4 is null or a space. You need to correlate exists it with the outer query query (I'm guessing on column1) to get the result I think you want.  However, who would update all rows in table_a who meets the criteria, there is a corresponding row in table_b, affecting Column3 lines form null not matched or not.  (Again), I'm guessing that's not your intention.  If you only want to update the lines in table_a which have a corresponding line in table_b and meet the other predicate, then I think you want something more like:

    Update table_a

    Set table_a.column3 = (select column3 of table_b

    where table_b.column1 = table_a.column1 and

    Table_B.Column1 in (select column1 from table_b

    Group by column1, having count (*) = 1))

    where ((table_a.column2 = 'X' ou))

    table_a.Column2 = 'Y') and

    (table_a.column4 is null or)

    table_a.column4 = ' ')) and

    table_a.Column1 in (select column1 from table_b

    Group by column1, having count (*) = 1)

    John

  • match, drag and drop the game

    Hello

    My name is Nikola and I am beginner with ACE

    Here's the thing:

    With the help of a tutorial I created a "game", where the user selects objects, it drags and it falls on the correct shape/color/object. Tutorial is based "1 to 1", so you can match an object and a target only.

    Now I have several objects and a target on which I can drop.

    Example:

    TARGET: square blue

    OBJECTS: Circle Blue Star, blue, etc.

    I'm stuck with Instance and Movie clip names since they must be unique, and the code itself works on the principle of the names Peel - object: name, target: 'target' + object name.

    flash1.jpg

    Here is a code for the option "1 to 1":

    var objectoriginalX:Number;

    var objectoriginalY:Number;

    shape_mc.buttonMode = true;

    shape_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);

    shape_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    shape2_mc.buttonMode = true;

    shape2_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);

    shape2_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    function pickupObject(event:MouseEvent):void {}

    event.target.startDrag (true);

    event.target.parent.addChild (event.target);

    objectoriginalX = event.target.x;

    objectoriginalY = event.target.y;

    }

    function dropObject(event:MouseEvent):void {}

    event.target.stopDrag ();

    var matchingTargetName:String = "target" + event.target.name;

    var matchingTarget:DisplayObject = getChildByName (matchingTargetName);

    If (event.target.dropTarget! = null & & event.target.dropTarget.parent == matchingTarget) {}

    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, pickupObject);

    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropObject);

    event.target.buttonMode = false;

    Event.Target.x = matchingTarget.x;

    Event.Target.y = matchingTarget.y;

    } else {}

    Event.Target.x = objectoriginalX;

    Event.Target.y = objectoriginalY;

    }

    }

    I hope I was clear,

    Thank you

    Nikola

    for your special example give all corresponding instances an identical letter to foreground:

    as: bStar, bSquare, specialist for all blue shapes and gStar, gHeart etc. for all those green... you get the idea

    then change your function

    function dropObject(event:MouseEvent):void

    {

    event.target.stopDrag ();

    check if the leader for two Sprites letter is the same

    If (testIfMatch (event.target.name, event.target.dropTarget.parent.name))

    {

    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, pickupObject);

    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropObject);

    event.target.buttonMode = false;

    }

    on the other

    {

    Event.Target.x = objectoriginalX;

    Event.Target.y = objectoriginalY;

    }

    }

    function testIfMatch(_drop:String,__target:String):Boolean

    {

    If (_drop.substr (0, 1) is _target.substr (0, 1))

    {

    Returns true;

    }

    on the other

    {

    return false

    }

    }

  • Match iTunes and Apple's music

    Hello everyone,

    First post here so please bear with me.  I got a glance at other posts and I find similarities, but please read below.

    As I have only 128 GB on my MacBook Air and half taken upwards by the music I had iTunes game recently.  The idea was to download ALL my music on the cloud and then access and/or download from the cloud on the go.  After completing the game, I'm sure that my music has been downloaded (it took awhile) but I still have all my songs on my hd.  So how can I / can I delete my files all having access to music in the cloud?  I have Apple music in my car and accessing my entire library of 'My Music' from there, but I fear that this will not be the case if I delete my music on my Mac and it is mirrored at the game.  All this makes sense?

    Thanks in advance.

    Hello

    Check this users iTunes game tips

    Make and keep a backup of your iTunes library and only flows from the Cloud.

    JIm

  • match iTunes AND Apple music

    I'm subscribed to iTunes game so that I can scan all my old vinyl albums. I finished this task. So now, I have a subscription to apple's music and a subscription of iTunes game. Is it necessary to have both? What features I could lose if I cancel the game?

    Hello

    Read this tip user iTunes game usage tips

    Jim

  • Why is 12.1.3 OTN but only 12.1.1 on delivery? I need to match development and production versions

    Developers are developing on 12.1.3, I don't want to operate on a lower version. If 12.1.3 is not available upon delivery, when will it be?

    New Oracle S/W delivery cloud. addition of WebLogic Enterprise - Oracle WebLogic Server (12.1.3.0.0), 1 file

    Oracle WebLogic Server (12.1.2.0.0)
    V38518 - 01.zip Oracle Fusion Middleware 12 c WebLogic Server and consistency (12.1.2.0.0)
    880,0 MB
    Oracle WebLogic Server (12.1.3.0.0)
    V44413 - 01.zip Coherence and oracle Fusion Middleware 12 c (12.1.3.0.0) WebLogic Server
    880.3 MB
  • Matching EMP and DEPT

    Hi all

    11.2.0.1

    I have departments in the DEPT table which are 10 and 20. Department 10 has 100 employees in EMP while 20 Department hasn't in the EMP, so there is no corresponding line.

    How can I create a query such as all the dept with no EMP will be displayed:

    EMP DEPT

    ====      ====

    10 100

    20 0

    30 20

    Thank you

    pK

    You must learn more about Outer Join

    Select d.deptno

    count (e.empno) emp_count

    d Dept

    Join emp left e

    on d.deptno = e.deptno

    Group

    by d.deptno

  • Visible bullets in other "pages" app after match "drag-and - drop. Help please!

    After you change the code from a tutoial, I've got the game part of drag n drop of my project educational app works beautifully.

    The misfortune is that, if I hit the home button, which is common to all 'pages' in my app away game, the bullets that were abandoned in the correct position remain visible on the stage in all other pages.

    I guess this is because the AS code removes the listener of events so once slipped to the correct position in the game, they snap there and can not be moved.

    Am I wrong?

    How can I solve the problem of the balls ignored being visible on other "pages".

    Thanks in advance and here is the code on the page of the application.

    var counter: Number = 0;

    var startX:Number;

    var startY: number;

    peg1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg5_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg5_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg6_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg6_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg7_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg7_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg8_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg8_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg9_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg9_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg10_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg10_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg11_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg11_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    peg12_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    peg12_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    function pickUp(event:MouseEvent):void {}

    event.target.startDrag (true);

    reply_txt. Text = "";

    event.target.parent.addChild (event.target);

    startX = event.target.x;

    startY = event.target.y;

    }

    function dropIt(event:MouseEvent):void {}

    event.target.stopDrag ();

    var myTargetName:String = "target" + event.target.name;

    var myTarget:DisplayObject = getChildByName (myTargetName);

    If (event.target.dropTarget! = null & & event.target.dropTarget.parent == myTarget) {}

    reply_txt. Text = "Good Job!"

    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);

    event.target.buttonMode = false;

    Event.Target.x = myTarget.x;

    Event.Target.y = myTarget.y;

    counter ++;

    } else {}

    reply_txt. Text = "Try Again!";

    Event.Target.x = startX;

    Event.Target.y = startY;

    }

    if(Counter == 12) {}

    reply_txt. Text = "congratulations, you're done!"

    }

    }

    peg1_mc.buttonMode = true;

    peg2_mc.buttonMode = true;

    peg3_mc.buttonMode = true;

    peg4_mc.buttonMode = true;

    peg5_mc.buttonMode = true;

    peg6_mc.buttonMode = true;

    peg7_mc.buttonMode = true;

    peg8_mc.buttonMode = true;

    peg9_mc.buttonMode = true;

    peg10_mc.buttonMode = true;

    peg11_mc.buttonMode = true;

    peg12_mc.buttonMode = true;

    use:

    home_btn.addEventListener (MouseEvent.CLICK, homeClicked);

    function homeClicked(event:MouseEvent):void

    {

    SoundMixer.stopAll ();

    {if(reparentedBalls!=null)}

    for (var i: uint = 0; i<>

    {if(reparentedBalls[i]!=null&&reparentedBalls[i].parent!=null)}

    reparentedBalls [i].parent.removeChild (reparentedBalls [i]);

    }

    }

    }

    gotoAndStop ("home")

    }

  • Can I TEMPORARILY disable or Turn off match without opt-out, so the matching and download process does not occur until I want to him and re-enable/turn back on?

    Can I TEMPORARILY disable or Turn - off Match without opt-out, so that the matching process and upload does not occur until I want what he and re-enable/turn it on again?

    Hello

    Yes, but why do you want to disable iTunes game? When you subscribe to Match iTunes, your library is analyzed to determine what can be matched or must be downloaded. When the scan is complete, your library will be updated automatically when you add new tracks or edit metadata.

    Jim

  • "Matches regular Expression" and "Model match" vi behaves differently

    Hello

    I need a simple matching chain and experimenting that found the "Regular Expression Match' and 'Correspondence model' vi behave a little differently. I guess that the entries of the regular expression on the two the same behavior. It's a difference that I discovered that the "|" character ("vertical" character, commonly used as an operator 'or') is recognized as such in the regex to Match vi, but not in the match vi model (where it is taken to the letter). Furthermore, I can't find any document using (online or in LabVIEW) on the ' | ' usage in regular expressions of character. Is - this documented anywhere?

    For example, suppose I want corresponding to one of the following 4 words: 'The' or 'fast' or 'brown' or 'fox '. The regular expression ' the | fast | Brown | Fox' (without the quotes) works for the vi Regular Expression Match but not the match pattern vi. Here is a photo of the block diagram and the results of the façade:

     

    The Help explains that the vi Regular Expression Match performs a little more slowly the match vi pattern, so I started with the latter. But since he does not work for me, I'll use the old. But does anyone have an idea of the speed difference? I guess that's negligible in a simple example.

    Thank you!

    Thank you, Jeff. That's what I was looking for. BUT my version of LabVIEW 8.5, does NOT say "functionfor example, the Match model does not support the parenthesis or vertical bars (|) characters.«» !

    See: http://zone.ni.com/reference/en-XX/help/371361D-01/glang/match_pattern/

    and http://zone.ni.com/reference/en-XX/help/371361D-01/glang/match_regular_expression/

    It is not mentioned in the help of special characters used for the match pattern : http://zone.ni.com/reference/en-XX/help/371361D-01/lvhowto/specialcharformatchpatt/

    The only place | has 'talked', it is in the sentence: "some regular expressions that use alternating (such as (. |))". \s)*) require significant resources to deal with when it is applied to the large input strings. "But I'm not processing a large chain.

    It seems that NEITHER fixed this omission. What version is your help?

    Ed

  • SUMIF line is equal to the value of test and the line below is '-'

    Hello

    I have a spreadsheet numbers where a column has a list of names that are mixed with rehearsals and another column that has a value of profits to this name list.

    Now, I want to determine the total profits from each of the names so I can see the total profit by name.

    That part is easy, I just a SUMIF function that checks if the name corresponds to a specific name, and then adds the benefit altogether.

    The problem I have is that in the names column, sometimes I'll have a name and then the next rows are just '-' indicating that they are of the same name. The SUMIF function that I use does not takes into account these values because they obviously do not match the name of the interest.

    So my question is: is it possible to create a function that will check for a matching name and then if the next line '-', then add this value to the total as well. It has to work with several rows of '-' after the name.

    The screenshot below is an example of what I mean because I realize that it does not have much sense.

    So in this case, the total of Jess profit would be = 5 + 35 + 15 + 5 + 15 = 75

    and the benefit of Gill = 30 + 30 + 20 + 40 = 120

    I hope I did it is clear enough. Thank you in advance!

    Oscar

    Hi Oscar,.

    Although it is possible to do, it will be a little clumsy, involving additional columns. It would be much easier to stop using the "-" and use the actual names instead. Order the popup format to create a list that makes it easy to list the names.

    Quinn

  • iCloud, game and music confusion Apple iTunes music library

    OK, first of all, I was a Match iTunes and subscribe Apple music, but before not to renew iTunes game, I asked and he said that if I keep my subscription to Apple's music, I would not lose my iCloud library.

    But its been a month now since the end of my subscription to Match iTunes, I keep my subscription to Apple's music and today, I have found that the majority of the track in my library of music iCloud is grayed out. So I'm screwed? I think that the information and the difference between the two services is not well explained, and now I think I'm losing all my songs matching (and many of them is not the access point) if I knew that I would lose all my music matching, I would never opt-out Match, but I read several article about it and they all said that I keep my current AP I will not use my corresponding music and everything what I lose is free of DRM.

    So, is anybody here had this problem before and there at - it a way to get my songs back?

    Hello

    Have you downloaded your music before you unsubscribe iTunes game? If the music is not on your hard drive, you will see your music in gray. You have a back up?

    Also read the ITunes game usage tips

    Jim

  • Some songs as matched on my Mac do not appear on my iPhone

    As the title says, checking the status of iCloud for my library of music on iTunes on my Macbook, some songs (actually a whole album) are shown as "appropriate", but doesn't appear at all on my iPhone.  Please note that others such as "matched" appear and are available to play on the phone. I missed something obvious?

    Thank you

    Hi littleeden,

    I understand that you do not see some of the iTunes Music on your iPhone.  The resources below provides some troubleshooting steps if some of your songs are missing.

    Get help with iTunes game

    If you do not see your library of iTunes on your iPhone, iPad or iPod touch game

    If your iTunes library Match is missing, restart your iOS device.

    If you can still see after reboot:

    1. Turn off iCloud music library and then turn on again.
      1. Go to settings > music.
      2. Turn off iCloud music library.
      3. Close the settings.
      4. Go to settings > music.
      5. Turn on iCloud music library.
    2. Sign out of iTunes , and then sign back in.

    See if your songs are available for download

    In iTunes, turn on the column to download iCloud to see the icons of music library iCloud. An 'Available for download' icon appears next to songs that are available in the music library of iCloud, but have not been saved on your computer and therefore will not be matched.

    If some of your songs are missing or the names of the song are grayed out

    If the songs you have purchased are missing or the song names appear in gray, they could use the digital rights (DRM) management. You must allow your computer before you can play these songs.

    Once you allow it, choose file > library > update iCloud music library on the bar menu at the top of your computer screen.

    Take care

Maybe you are looking for