standard character of regexp

Hello

I'm looking for a regexp avoid the user using anything else than 1-9 a - z A - Z and '_' to a file name.

concerning

Tinnitus

[^ \w] matches anything that is not an alphabetic character.

Tags: NI Software

Similar Questions

  • An unexpected result of: myCell.contents

    Hello

    I have an Indesign Table with 4 rows, it contains text in the2nd and 3rd rank.

    We can read the cell content - 2nd, however we cannot read the contents of cell in the 3rd row.

    The line of code firstCellOfThirdRow.contents must provide the value: "MyTextB". However, we get a cryptic letter that looks like 't'.

    Any ideas?

    MyTextA
    MyTextB

    The Indesign model:

    http://www.com-active.de/downloads/ProblematicTable.zip

    Here is the code:

    Second Table-Row
    var secondRow = myTable.rows [1];
    var firstCellOfSecondRow = secondRow.cells [0];
    Content2 var = firstCellOfSecondRow.contents;  'MyTextA '.

    Third Table-Row
    var thirdRow = myTable.rows [2];
    var firstCellOfThirdRow = thirdRow.cells [0];
    content3 var = firstCellOfThirdRow.contents; I expected 'MyTextB', but this isn't the case. Why?

    It is not a cell within a table, but a clean table, nested within it.

    Access to the 'content' forces Javascript here to find a representation of characters for the contents of the cell and thus the code internal 0 x 16 for a table converted the character 22 - which is not a standard character code, and you get something random: sort of a small capital T.

    Select this internal table and then choose "Convert to text" to bypass the mystery or rewrite your script to be able to manage tables in the tables.

  • Special characters not showing does not correctly

    All of a sudden my (not so) special characters may not be rendered correctly.  A large part of the site is in German, where a lot of umlauts.

    With upload of yesterday umlauts now look like this:

    Zura¼ck, instead of back,

    FA¼r, instead of as.

    Scha¶mberg, instead of Schömberg, etc..

    Ignore the link highlighting.

    Here is a link to a sample:

    http://www.Schembs.com/TEST_jds_4.html

    Thanks for your help.

    JDS

    JDS zig - zag wrote:

    David, why I want / need to go to the charset = UTF-8?  Browsers in the future is no longer make charset = ISO-8859 pages correctly?  And what about the charset = windows-1252?

    UTF - 8 is in Unicode format, that represents the characters in all the world's main writing systems. It supports such as o and u accented characters.

    ISO-8859-1 is a small subset of UTF - 8, more commonly known as Latin 1 or Western Europe. It does not support accented characters. Instead, you must use o and u to represent the same character.

    Windows-1252 is a non-standard character set that should never be used in a Web site.

    Given that your hosting company offers support UTF-8 on the specified directories, it's the way you should go. If you have pages that are encoded in ISO-8859-1, they will display properly when served as UTF - 8. However, the reverse is not true. A page that is encoded in UTF - 8 is likely to be damaged if served as ISO-8859-1.

    Also the old files have one or two of these lines in the headers:

    
    
    
    
    

    Are they necessary?  What happens if I remove them?

    No, they are not required. Nothing will happen if you remove them.

  • script to duplicate the standard paragraph style, and then change the size of the character point

    I want to create a script that will create a cascade of paragraph based on the style settings [standard paragraph] styles. My goal is to point size of each new paragraph style character as a percentage of the original [standard paragraph]. So if [standard paragraph] is 100% (point character size 10pt), the script would create a paragraph style called 120% ' that has a point size of character of 12 points. Then 133%, 140%, and on and on. I modified a script found on this forum to generate these new styles, but I don't know how to be based on the [standard paragraph]. Any help would be much appreciated, thanks in advance.

    current script:

    var doc = app.activeDocument,

    pStyle = ['100% ', '120% ', '133% '];

    for (var i = 0; i < pstyle.length; i ++)

    {

    If (pstyle [i] is "100 %")

    {

    doc.paragraphStyles.add ({name: pstyle [i], appliedFont: 'Deer', pointSize:10});})

    }

    ElseIf (pstyle [i] == "120 %")

    {

    doc.paragraphStyles.add ({name: pstyle [i], appliedFont: "Deer", pointSize:10 * 1,2})

    }

    ElseIf (pstyle [i] == "133 %")

    {

    doc.paragraphStyles.add ({name: pstyle [i], appliedFont: "Deer", pointSize:10 * 1.33333})

    }

    }

    Try this,

    var doc = app.activeDocument,
        pstyle = ["100%", "120%", "133%" ];
    
    for(var i =0;i
    

    Kind regards

    Cognet

  • 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)
    
  • Using the smart keyboard, I get invalid characters in the standard IOS search box. How can I get the correct character to use?

    The intelligent keyboard on my iPad Pro works fine all the time except when I go to the search feature of iOS. As soon as I go ahead and start typing I'm extended character set characters rather than the face value of the keys I hit. Is there a setting that changes the character set used by the search feature with the Smart keyboard? On-screen keyboard works fine, but it's a nuisance by disconnecting the Smart keyboard everytime I want to search for.

    Thank you

    Steve Lewin

    What you get in the search box when you type asdfg?  Is - this ass∂ƒ?

    What language your OS and keyboard are set on?

  • Split or character style indesign standard carriage return

    Hello. I use the Split text by paragraph style, but...

    I need a lot split text with styles applied too much character. For example.

    Screen Shot 2016-03-18 at 3.11.18 PM.png

    Is this possible with a script, grep...?

    Please help me.

    Try

    function addLinefeeds() {
        var doc, cs, l, finds;
        doc = app.properties.activeDocument
        cs = doc && doc.characterStyles.itemByName("answer"); // change
        if (!cs || !cs.isValid) {
            alert("No Finds, try changing the characters style name");
            exit();
        }
        app.findTextPreferences = app.changeTextPreferences = null;
        app.findTextPreferences.appliedCharacterStyle = cs; // change to styleName
        finds = doc.findText();
        l = finds && finds.length || 0;
        while (l--) {
            // if not allready on a new line put add a new line
            if (/[^\n\r]/.test(finds[l].contents[0]))  finds[l].insertionPoints[0].contents = "\n";
        }
    }
    app.doScript(addLinefeeds, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "add line feeds to characterStyles");
    
  • 16.0.1 Firefox started to hang on the NY Times website - I have done all the standard fixes - disable modules, reinstalled firefox, default, character reset

    Suddenly, firefox has become unstable - suspension on the NYTIMEs site. I did just - uninstalled, reinstalled, deleted all add-ons used default themes, reset firefox. A serious problem here - I had to go back to IE9. (Firefox version 16.0.1 running Windows 7)

    Oh by the way, I'm having the same problem on several computers running the latest firefox on Windows 7

    Update thread here: https://support.mozilla.org/en-US/questions/939664

  • Chinese character for nǚ

    When you type with the keyboard of mandarin simplified, when I type the letters 'naked', the first coming option is 奴. But I want only the radical for nǚ (the first left radical). This character does not present as an option. Is there a way to type only the first radical - or I'm stuck writing 'woman' like '奴人 '? Because, according to my Chinese-English Dictionary, which is not correct. Thank you!

    The standard method to represent u in pinyin keyboards is 'v '.  If you type nv for 女

  • Can I add a character to the character Viewer?

    I tried to figure out how I can download the buttons of social media such as LinkedIn, Facebook, Twitter, etc., to my character Viewer. Any thoughts on how this can be done?

    Character viewer display only characters included in the fonts installed on your computer.  so you have to get a font that has these buttons.  Try a search on Google for this.  How much would such a font, you would have to test, because it would be non-standard.

  • How to return to the standard menu?

    I just installed the latest version of Firefox, which is available for Ubuntu - 29,0 - and now the system menu of standard window disappeared. Instead, I have a horrible menu truncated to the right of the address bar.

    I can work where many of the missing menu items went to, but there are a few that I can't find. Especially the whole 'help' menu (I wanted to use "help-> about" to know what was the version, but I had to use dpkg instead) and the menu 'View-> character encoding', which I use often when debugging problems with web sites.

    Why the menu has been removed? Seems like a stupid idea for me. Is there a way to reactivate?

    I found it. Well, sort of.

    If you press 'alt', you get the menu appearing temporarily.

    If you right-click in the empty space next to the tabs, you get the option to activate permanently in the menu bar.

    Friends on IRC pointed out both of those myself. There is no way, I could find them without help. It is a terrible user interface.

  • evil due to the non-standard layout keyboard shortcuts.

    I use a not standard, configuration of keyboard not QWERTY, from Dvorak to the developer by Roland Kauffman (for that "ddvorak").
    Shortcuts keyboard seem to be messed up, and I can't understand how to make them grow.
    On a standard web page, hit CTRL + C opens the bookmark library. Pressing CTRL + I (I is the button that gets the character 'c' under ddvorak) opens a side sidebar "search in a bookmark". Curiously, I can copy / paste without problem from the input field like the one I'm using to write this.

    I noticed that the menus contestual have not even keyboard shortcuts (but shortcuts are present in the "Edit" menu).

    Pointers?

    Hello

    This is a known bug in Firefox. Please see the bug here report to see the conversation / the work done so far:

    https://Bugzilla.Mozilla.org/show_bug.cgi?id=434737

    You can also use the voting feature to express your support / interest to get this resolved. See here for more information on the right to vote:

    https://Bugzilla.Mozilla.org/page.cgi?id=voting.html

    In the bug, a user called Zac mentions that he was able to work around the problem by using the keyboard layout manager. However, it was in 2010. See the post for more details.

    I hope this helps.

  • What happened to my character?

    Hi all

    After uninstalling some toolbars to disable via the config page and wicked, my characters stopped working. Today the standard blue/gray theme shows (http://i270.photobucket.com/albums/jj.../ff_view.jpg). Is there a way to reset this?

    Hello

    You can consider the function of Reset Firefox via help (Alt + H) > troubleshooting information and install the character again.

    (To return to the previous mode, you were using, close the new profile (i.e. Quit Firefox), start Firefox and choose the default user profile.) Alors_que Profile Manager is open, you can also remove the reset your profile (the one containing the random numbers) or the old profile, as appropriate).

    Profile management

    Profiles Howto

    Personas

  • my character on measure, viewing area is lost after each update of Firefox

    I customized my Firefox personas display area, but after the updates of Firefox, he returned to standard parameters...

    The parameters of the selected character are stored in the form of a framework of pref in the prefs.js file in the Firefox profile folder.

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: opens showing the file

    See:

  • I use VISA 5.3 for reading my serial device... my standard equipment is WELL this device will send four messages for only one comand I need all four messages to display at the same time in VISA SERIES READ BUFFER

    I use VISA 5.3 for reading my serial device... my standard equipment is WELL this device will send four messages of single command given to this instrument... and I read messages through VISA series READ... during the race, the VI buffer displays the messages individually...  I need all four messages to display at the same time in VISA SERIES READ BUFFER, in order to find more than this block, I should add from the palette of function.

    Disable character of endpoint detection or make four readings where you concantanate simply the strings together.

Maybe you are looking for

  • Update for Sierra 10.6.8

    Sierra update statement States: "If you're running Snow Leopard (10.6.8) and your Mac supports macOS Sierra, you need to first upgrade to El Capitan.» Click here for instructions. "However, there is no link to follow... How can I get an El Capitan in

  • Error 1051: User profile Service has no logon

    Mr President.I use a real operating system Windows Vista Home Premium SP2 with my laptop Lenovo Y430. I have recently updated to SP1 to SP2 Windows Update online. last week when I tried to log in one of my user accounts, the above-mentioned error pop

  • Sound not playing does not, apart from Spotify.

    Why is what Spotify can play songs, but I get the error "Unable to read your test" message when you try to test my speakers? I checked the volume levels already, nothing is mute or low. As I type this I'm listening to Spotify, but no other applicatio

  • Hi, I can not paste the copied text of pages for Adobe applications, why is this? I have can´t even paste text in InDesign...

    Hi, I can not paste the copied text of pages for Adobe applications, why is this? I have can´t even paste text in InDesign...

  • new E2 sync

    I have an existing E2 which does not work well and have bought a new E2.I want to preserve the present categories, I created in my E2 and on my computer, when I first time synchronize a new E2 (former died). How be sure that all the data is not going