Selecting words in the beginning of a LINE (not a paragraph)

Hi
I'm trying to avoid certain combinations to fall at the beginning of any line in a body text.
How do I select a particular character only if it occurs in the beginning of a line (but in the middle of a paragraph.
For instance I want to select the char "a" only if it occurs at the left margin of a column
I only find the location marc "beginning of a paragraph" (^), or beginning of a word,  but not the beginning of a line.
It could be as grep, or as a script.
Anybody?
Thank you
/javier

It would need a script. GREP is not aware of the individual lines in a paragraph.
The good news is, InDesign's scripting language is fully aware of lines. There are, on first sight, two possible ways of locating all a's at the start of a line. Either search for all a's (doesn't need a GREP, but you must remember to set caseSensitive in the FindChangePreferences) and loop over them, checking for the ones that are at the start of a line, or check all lines one by one, checking for the ones that start with an 'a'.
Both options seem equally slow I guess what to use depends on your text, and what you'd want to do when one is found. On that note: you must process them from last found to first, because if you change something, it may have an effect on all text that follows.

Similar Messages

  • Mail is putting the word SPAM at the beginning of subject line of messages

    Mail is putting the word SPAM at the beginning of subject line of a large percentage of messages in my in box that are not junk. My Mail Junk Preferences don't seem to affect this. Any ideas?

    Dale Borglum wrote:
    My Mail Junk Preferences don't seem to affect this. Any ideas?
    I don't think Mail can actually do that. It might be something being done by the spam filter running on the mail server at your ISP.
    If you have access to your mail through webmail or a different mail program, try leaving Apple Mail closed for a while and only reading mail in one of the other ways. If the SPAM word keeps getting tacked on even when Apple Mail is not running, Apple Mail is not the one doing it.

  • Indesign adds an anoying space at the beginning of a line

    Text supplied to me very very often has the combination:
    <tab><bullet><tab>rest of text....
    If I select <tab><bullet><tab> and hit delete, Indesign replaces it with a space.
    It's very annoying because I then have to delete the space. Who needs a space at the beginning of a line like that!?
    Preferences > Autocorrect > [  ] Enable Autocorrect is OFF, so there's no substitution going on (I think).
    Can someone offer any insight as to what I need to adjust in my prefs to stop this behaviour.
    I'm using Mac OS 10.9 and Indesign 2014
    Many thanks,
    K.

    Theway  I choose to to fix this kind of problem is to Use Find and Replace. Under Find, insert the text or code that you want deleted. Under Replace, insert NOTHING, then select Change All. If you don'twant to replace all instances use the Find Next to keep the coding or use the Change/Find that will delete the code and find the next instance. I use this method all the time to get rid of the double-spaces that are frequently found in word processing files. You can probably do the same thing in your word processing program.
    It may sound complicated but it's really quite easy.

  • Display each words of the string in separate line.

    Dear Javaties,
    pls help me creating this program.
    Display each words of the string in separate line.
    Eg.
    Input value : Testing this string.
    Output : Testing
    this
    string
    Thanks in adavance,
    M. Suresh

    M Suresh,
    We would be delighted to help if only you asked a specific question. Do my work for me is not a specific question.
    The Javaties

  • Trying to use GREP to add 2 spaces to the beginning of a line, under a particular circumstance.

    Hello,
    I am trying to add 2 blank spaces to the beginning of any line that has a punctuation at the end of that line, followed by a forced line break.
    I can get the GREP to find the punctuation at the end of a line with a forced line break:
    [[:punct:]](?=\r)
    But, is there a way to tell it to now add 2 spaces to the beginning of that line?
    Any guidence is greatly appreciated.
    thanks
    babs

    If applying a paragraph style works (nice thought!), then finding [[:punct:]]\n and applying the style works fine, no need for the grouping and the lookbehind. But if it's really the case that two spaces need to be inserted, then that's possible only if the text is not formatted at all. Then
    find ^.+[[:punct:]]\n
    change to \x20\x20$0
    will do the trick (\x20 is the space character). If the text does have any formatting, a script is needed.
    Peter

  • HT1343 Error on Page: "Control-E     Move to the beginning of a line or paragraph" should be "Control-E     Move to the end of a line or paragraph"

    Error on Page: "Control-E Move to the beginning of a line or paragraph" should be "Control-E Move to the end of a line or paragraph"

    Apple - Feedback

  • Given a multi-line string I want to append a string constant to the beginning of each line.

    Thankyou.

    You could just use "search and replace" with the search string being "\n" (in \codes display) and the replace string as "constant\n". (See attached image).
    If the string you want at the beginning of each line is variable (e.g. line number), you should use e.g. "pick line" or "scan strings for tokens" in a loop, then rebuild the new string.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    AppendConstant.gif ‏9 KB

  • I need to plot the Least Squares Regression Line (not just calculate it with the LINEST function).  How?

    I need to plot the Least Squares Regression Line (not just calculate its values with the LINEST function).  Can anyone advise me on how to graph this line?

      Grapher.app in OS X Utilities is excellent for that : entering data from Numbers Excel etc. into a Grapher "Point Set", plotting all your data, computing and plotting a regression curve linear or exponential or polynomial.
      Unfortunately there is not a single word about point sets and regression in the Grapher Help.
    So, suggest you download (free) "Instruction for Use - Grapher on web site
    http://y.barois.free.fr/grapher/Documentation.html
    and go to page 31 to 37, "Initiation > Lesson 6 : Treating a point set (Regression curve), and also page 68, "Appendix 1. Points sets : from speadsheets to Grapher".
      If you try Grapher's regression curves, please tell us about the manual above : useful or not, too easy or difficult, readable or not etc.
      Thank you.
    YB24
    PS. Documentation about Grapher is also here : Google "Apple Grapher" > http://en.wikipedia.org/wiki/Grapher > Article > Talk > Grapher 1.1 to 2.3 (French and English) (11th september 2012)

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Is it possible to add a word at the end of a line?

    Hi, i'm searching a way to automatically add a word at the end of a certain paragraph styles?
    is it something possible doing by using a script?
    i don't script myself but if someone could find me a way to do this it would be really appreciated.
    Here's an example to what i need to do:
    i have paragraph style X in a current  book document, and i need to edit the book and add the copyright source at the end of every line that has the style X to it
    so i would need something that asks me
    the targeted paragraph style
    which word i want to append to it, and then apply it torough the document.
    Thanks in advance

    Yes, the screen shot shows where you got it wrong:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Find: (.)$
    and set your paragraph style in the find format area
    Change: $1XYZ
    where XYZ is the text you want to insert.
    .. you forgot the '1' right after the '$'. It's an important omission: "$1" is a GREP code, meaning "insert the found text, parenthesized group #1" -- and there is also a "$2", "$3", etc. up to "$9". It's great if you have to switch two, or even more, items around! But without the digit, the dollar sign indicates ... just a dollar sign.
    Change the Change to text to
    $1~S(CEMEQ)
    and you'll be fine.

  • How to make Firefox (Mac) not go back a page upon pressing the Cmd+Left-Combination which should set the text cursor to the beginning of a line in input fields instead of leaving the page?

    On a Mac, Cmd+Left places the text cursor to the beginning of the line, Cmd+Right to the end of the line.
    FireFox however goes back resp. forward a page in hinstory, which is ''most annoying'', since it very often causes me to accidentally leave a still unsubmitted form and loose all input!
    I did not find any possibility to get rid of these dreadful keybindings.

    Thanks for your response.
    I guess I didn't revert to as far back as the change I had made because when I follow your instructions, no entries are bold.
    Or did you perhaps mean the next time the problem occurs I should look for a bold entry? And then change it back to what it was? (All that I recall from a year ago was that I changed one entry from ''true'' to ''false'', or vice versa.)

  • Playbook requires me to pay for support when it did not work from the beginning and they could not fix.

    lack of email app- makes this may purchase virtually useless. because
    cant bridge with my bb 9700. maybe twice after deleting from both, and rebridging, i got connections. i cant spend an hour bridging every time. since may this is unfixable. the support people cant fix it after dozens of hours. got lots.of emails from them though. asking if i was resolved. when i answered no, they asked me to do it all again. they have no fix for this.
    can type documents, but cant email them to anybody. same with excel. no way to attach documents when the bridge doesnt work.
    i am a ceo,and i am moving my entire organization off bb becuase of this.
    have spent many many hours from the beginning in may, and now they want me to pay a 129 dollar fee to get support when it has not worked right from the beginning.
    i bought an ipad today and i am absolutely blown away by how much better it is in every single way. dozens of bbs are going away now.
    slow, no.email, locks up all the time, stand by button restarts tablet, no bridging without total reload on both devices. why would i go through this anymore? it is costing my business a fortune with myself and my people trying to make the playbook work.
    we will get ipads and make more money.
    i have tried to stay loyal to bb, but after being told i have to pay for support
    when i did once get a connection through bridge, reply locked up everytime on an email. could not type.

    I would like to add my support to this comment.
    Strike 1) Bridging a BB 9700 with a PB is flaky at best. Even if you run the very latest software on both, it does not work properly. This is NOT a user issue but a programme/application issue. RIM software running on RIM hardware and O/S and NOT being able to connect properly = RIM fault.(see my other post: My Bridge connects, it exchanges data like passwords, number of unread emails and my playbook notifies me when someone calls my BB, but it does NOT unlock)
    Strike 2) All this used to work fine during the 90d grace suport period (apart from the flaky bluetooth issue that required a hard reboot of the BB whenever the connection was broken in a bad way)
    Strike 3) Now, after a PB OS upgrade (which I faithfully applied), several phone upgrades (due to another problem) and the latest Bridge application install, it all doesn't work anymore, 100 days after I bought the flipping thing. so I have a fancy ebook reader, not the productivity enhancing tool I can use on the go.
    So now I am stuck with a forum that can't help, a technical database that does not contain this support information and a broken RIM application on RIM Hardware and O/S that I paid a lot of money for. And now they want more to look at this incident????? I am sorry but if this was a problem caused by usage, configuration or any other user error, I could understand it. But this is all completely in RIMs ballpark. I have done everything right. It connects. It just DOES NOT WORK!!!!!
    As I said in my other post, an evaluation of the PB in my company is ongoing as a possible management tool by people I know quite well, as I work in the area, but my advice would definitely be to stay away until basic functionality like emails, attachments, calendars etcetera are all suitably solved and usable by the average manager with sausage fingers and no clue about bluetooth, hard reboots and who won't be able to hold down the power, + & - buttons at the same time as the fingers won't fit!!
    So RIM, get your finger out, open up an email support channel or get some qualified support people go through this forum and help those people who have shown faith in your products and who now have real problems with your software and hardware. DONT HIDE BEHIND A STUPID SUPPORT FEE - MAN UP TO YOUR PROBLEMS!!!

  • How to keep the defaultValue in the netui:select tag at the beginning of the dropdown values?

    Hi,
    I am using <netui:select dataSource="{actionForm.xyz}" defaultValue="Any" optionsDataSource="{actionForm.someMap}"
    />
    Now I am getting the values from database to populate the dropdown using the optionsDataSource.
    As I am using the defaultValue, it is being added to the end of the dropdown and
    selected by default when I a mopening the page on browser.
    In my dropdown, the values are as follows:
    apple
    orange
    banana
    Any
    Now my requirement is, the defaultValue, Any, must be there at the top of the
    list instead at the bottom of thge dropdown values. i.e., In the above list, "Any"
    must be above apple option.
    How can I achieve this using netui:select tag?
    Thanks & Regards,
    Murthy

    Murthy,
    Unfortunately, though a very reasonable requirement, there is no option for
    placing the default item.
    - john
    "Murthy" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I am using <netui:select dataSource="{actionForm.xyz}" defaultValue="Any"optionsDataSource="{actionForm.someMap}"
    />
    Now I am getting the values from database to populate the dropdown usingthe optionsDataSource.
    As I am using the defaultValue, it is being added to the end of thedropdown and
    selected by default when I a mopening the page on browser.
    In my dropdown, the values are as follows:
    apple
    orange
    banana
    Any
    Now my requirement is, the defaultValue, Any, must be there at the top ofthe
    list instead at the bottom of thge dropdown values. i.e., In the abovelist, "Any"
    must be above apple option.
    How can I achieve this using netui:select tag?
    Thanks & Regards,
    Murthy

  • Trying to upgrade from OS9 to 10.2.3, get as far as "select a Destination"  the installation stalls and does not show any destination disks

    I have a Power Mac G4, it has OS 9.  Imam trying to upgrade to OS 10.2.3 (Jaguar).  It is going smoothly until I get to the "Select Destination"  screen.  It stalls there and does not show any disks to choose from.
    Any ideas?
    Thanks. Abe Oliver

    Hello Abe,
    If it's a Digital Audio or earlier, you need to install a Firmware update first...
    As explained in "Mac OS X 10.2 Welcome and Install Manuals" and "Mac OS X Welcome and Install Manuals", you may need to update the firmware on your Macintosh computer prior to installing Mac OS X 10.2 or later. The following table lists the firmware updates that are available for Apple products that can update to Mac OS X 10.2 or later.
    http://support.apple.com/kb/HT1395?viewlocale=en_US
    Power Mac G4
    Firmware Update
    Download Document No.
    Power Mac G4 (Mirrored Drive Doors 2003)
    no update needed
    Power Mac G4 (FW 800)
    no update needed
    Power Mac G4 (Mirrored Drive Doors)
    no update needed
    Power Mac G4 (QuickSilver 2002)
    no update needed
    Power Mac G4 (QuickSilver)
    no update needed
    Power Mac G4 (Digital Audio)
    Power Mac G4 Firmware Update 4.2.8
    120068
    Power Mac G4 (Gigabit Ethernet)
    Power Mac G4 Firmware Update 4.2.8
    120068
    Power Mac G4 (AGP Graphics)
    Power Mac G4 Firmware Update 4.2.8
    120068
    Power Mac G4 (PCI Graphics)
    no update needed
    Power Mac G4 Cube
    Power Mac G4 Cube Firmware Update 4.1.9
    75129

  • I bought my I mac august 9. Why is the new ops mountain line not on my computer

    Why is mountain ops not on my new I mac I bought August 9

    Where did you buy your new iMac?  Was it from an Apple store or from an Apple reseller?  It may be stock they had before the release of Mountain Lion.
    Go to http://www.apple.com/osx and then go to the update page and register in the up-to-date program, you will get a redemption code to use to download ML for free.

Maybe you are looking for

  • After Archive and Install, there is less room on disk

    I recently had to do an archive and install from my Mac OS X Disc 1 & 2, and I new it would take up between 10 and 15GB of Disk space, but I can't figure out how to clean up the disk so I have the amount of space I had before the archive and install.

  • WRT610N wired 1Gbits drop to 100Mbits after a while

    I start my computer running XP SP2 and the router wired port 1 (the only wired) show connected green (this mean 1Gbits until they fix it) and all seems fine. After an hour or two I see a message near the time about network diconnect then reconnect th

  • Deleted

    Edit: resolved...ugh...I mistyped the analytics collector url, i guess analytics defaults to broadcast if it can't resolve the unicast IP... So i'm trying to figure out why the portal can't talk to the analytics collector (different subnets)...and it

  • "FRM-40501: Oracle error: Unable to Reserve Record For Update or Delete"

    "FRM-40501: Oracle error: Unable to Reserve Record For Update or Delete" as I can unblock a session in the graphical surroundings of administration of the BD 10g of Oracle

  • Question about eligibility in SAP-teched For Associate level certification

    Hi everyone, I have have started working with my current employer as trainee in SAP and now i have completed 1 year in this organisation. am i eligible to write ceritification for Associate level? Since sap mentioned prerequsite are 1. Should have se