Hi

First of all, something handy to know is that if you save a Grep  
expression in the Find/Replace dialogue box using the pop up menu with  
"g" on it, then that saved expression is available to be put into the  
Text Factory "Replace All" instruction via the Patterns pop up menu in  
the Options dialogue.

I mention this because you can experiment with Find/Replace  
expressions using the dialogue then easily put them into a Text  
Factory instruction.

You might like to try:

Find: \{\\RL \{\\(.+)\}\}

Replace: <p class="P8">\01</p>

In the find expression I've used \ before { to turn { into a literal  
version, because { has meaning in Grep. This is also true of } and \.  
This explains the extra \.

Bunches of Hebrew words here are captured using (.+)

These are then put into the Replace expression using \01.


Patrick

http://www.patrickjames.co.uk

On 20 Dec 2008, at 20:23, outis wrote:

>
> Hello,
>
> I'm trying to use the 'replace all' thing in the text factories with a
> grep pattern.
>
> I have a XeTeX document that I'd like to strip the coding from and
> convert into a .html file.
>
> What would the syntax be to replace:
>
> {\RL {\ezr Bunches of Hebrew words here}}
>
> with:
>
> <p class="P8">Bunches of Hebrew words here</p>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "[email protected]" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to